Thread: QT 4 and Python

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    28
    Rep Power
    0

    QT 4 and Python


    Anyone lead me in the direction to find a tutorial on how to implement QT 4 made ".ui" files with python.

    I can find many tutorials on how to use PyQT and hand write the gui, but how do I use QT 4 the application to generate GUIs and then implement these .ui files with my python code???

    Any help is appreciated.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    28
    Rep Power
    0
    :: bump ::
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    155
    I don't believe that you can. I think that the only thing available to you is the Qt library.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    28
    Rep Power
    0
    Booo Booo.

    That would be so great! Anyone know of another language that this is possible with? I know that it is built for C, well maybe I should simply spend a weekend locked up in my house learning C.

    Any comments? Help?
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    12
    Rep Power
    0

    compile the .ui file to .py


    If you mean how to convert a .ui GUI file to a .py file, you can use a small compiler called 'pyuic4'. Download it (you'll have to Google it), and then

    1) save your .ui file to a directory
    2) go to the windows command line and go to that directory
    3) type 'pyuic4 -x filename.ui -o filename.py'

    there's your python file.

    Hope that helps.

IMN logo majestic logo threadwatch logo seochat tools logo