Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

QtDesigner and Python.ogv

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,512
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 30, 2010

Using QtDesigner with PyQt4.
- -
How to use QtDesigner is outside the scope of this screen cast. There are many others, use them.
- -
1. Install QtDesigner and PyQt4. There is a command pyuic4 which should be available after installation. Check that it exists.
- -
2. Using QtDesigner, create your design and save it.
- -
3. Using pyuic4 generate a python file from the design as such 'pyuic4 myfile.ui >myfile.py'. Notice the use of output redirect on this shell command. pyuic4 writes the python script to standard output.
- -
4. Create another python script in your favorite editor. Create a class to extend QtGui..MainWindow and the class just created by pyuic4... Yes, multiple inheritance. One of the benefits of python :-).
- -
5. Use 'self.setupUi(self)'. This invokes a method on the generated super class to construct the window.
- -
6. Each widget is available via the name you gave it in the designer. The rest is up to you.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Awesome job!!  You save me a lot of searching with part 4 and 5 !! :) Thank You

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more