In this section we're going to finish up our main window by adding some icons to our actions, and then look into how to reuse them for a toolbar.
This blog is designed to provide guidance, tips-and-tricks, and generally share the knowledge that I have collected over my career as a software engineer in the Animation/VFX/Film industry. If you're new to blogger - you can search the posts in the field on the top-left of the page. I would also recommend starting from the earliest post and working towards the latest post - as the dates are tweaked to setup the tutorial order. I hope you enjoy!
Showing posts with label Qt Designer. Show all posts
Showing posts with label Qt Designer. Show all posts
Monday, October 17, 2011
Nexsys: Main Window Ui (Part IV)
Labels:
Intermediate,
nexsys,
PyQt,
Python,
QAction,
Qt Designer,
Shortcuts,
Toolbars,
Tutorial
Sunday, October 16, 2011
Nexsys: Main Window Ui (Part III)
At this point we have a pretty well blocked out interface for our main window. There are still a couple more steps that we're going to do in designer before we jump back into the, to make sure we get the most out of our interface builder.
Labels:
Intermediate,
nexsys,
PyQt,
Python,
Qt Designer,
Tutorial
Saturday, October 15, 2011
Nexsys: Main Window Ui (Part II)
Now that we have our menu's and actions flushed out, we can start adding in the main components to our central widget.
Labels:
Intermediate,
nexsys,
PyQt,
Python,
Qt Designer,
Tutorial
Friday, October 14, 2011
Nexsys: Main Window Ui
If you've made it this far, then you will know that our main window is really dull. It pops up at random, doesn't load anything and generally is rather unimpressive.
This is where we start actually putting some information into our appliction and make it look like an actual application.
This is where we start actually putting some information into our appliction and make it look like an actual application.
Labels:
Intermediate,
nexsys,
PyQt,
Python,
Qt Designer,
Tutorial
Tuesday, October 11, 2011
PyQt Coding Style Guidelines (Cont.)
One of the aspects of developing consistent code is having a common naming style. We talked about this for the Designer a bit in the last post - and we'll go into it a bit more in depth now.
Labels:
Beginner,
PyQt,
Python,
Qt Designer,
Tips and Tricks
Monday, October 10, 2011
PyQt Coding Style Guidelines
One of the most important thing a developer can do is develop clean, consistent, code. Develop a style and follow it. It will make reading your code much easier for other people, and even yourself, if you have to go back to something you wrote much earlier.
This is a series of coding standards that I follow when I develop PyQt applications - which is a mixture of the Python and Qt guidelines to try to make clean, consistent applications. Coding style guides are often disagreed on, so take these with a grain of salt - I've thought about them a lot, but you may not agree with my reasoning...which is perfectly good. The important thing is to develop consistency more than any one style.
Labels:
Beginner,
PyQt,
Python,
Qt Designer,
Tips and Tricks,
Tutorial
Sunday, October 9, 2011
Comparison of Loading Techniques
In the last tutorial we started working with Qt's Designer - which can greatly improve your coding workflow if you use it correctly. It can also become very confusing for other developers if you don't cultivate a well organized structure to the way you integrate designer files into your project.
This tutorial will cover some tips and tricks that I've found make working with designer files, taking advantage of the power that is provided with Designer while keeping the code clean and easy to follow.
This tutorial will cover some tips and tricks that I've found make working with designer files, taking advantage of the power that is provided with Designer while keeping the code clean and easy to follow.
Labels:
Beginner,
PyQt,
Python,
Qt Designer,
Tips and Tricks,
Tutorial
Saturday, October 8, 2011
Introduction to Designer
The Qt Designer is a WYSIWYG (what you see is what you get) interface for laying out the widgets for your applications.
It allows you to drag and drop widgets onto your custom class and lay them out with minimal effort and 0 code. Your template will then be saved out to an XML based file (a .ui file) format that you can read into your application.
In this tutorial, we'll re-do our last code using Qt's designer to create our actions and link everything together.
It allows you to drag and drop widgets onto your custom class and lay them out with minimal effort and 0 code. Your template will then be saved out to an XML based file (a .ui file) format that you can read into your application.
In this tutorial, we'll re-do our last code using Qt's designer to create our actions and link everything together.
Labels:
Beginner,
PyQt,
Python,
QLayout,
QMainWindow,
QSplitter,
Qt Designer,
Tutorial
Subscribe to:
Posts (Atom)