Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Convert .ui to .py file?
Forum Update on Monday, May 27th 2025

Convert .ui to .py file?

Scheduled Pinned Locked Moved Unsolved Language Bindings
5 Posts 4 Posters 13.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dl10
    wrote on last edited by A Former User
    #1

    How I can convert .ui to .py file?
    I have cmd and i using anaconda.
    Please help. tnx

    K 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Using Qt Designer chapter from PyQt's documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      JonBJ 1 Reply Last reply
      2
      • D Dl10

        How I can convert .ui to .py file?
        I have cmd and i using anaconda.
        Please help. tnx

        K Offline
        K Offline
        Ken_Du
        wrote on last edited by
        #3

        @Dl10 if you has install eric6, you can build *py for *ui easily.

        1. Install eric6 from : [https://sourceforge.net/projects/eric-ide/files/eric6/stable/6.1.7/](link url)
          Download and install by python install.py install. When you install successfully, you will find eric6/eric6.pyw.Open it with python
        2. you can easily compile the ui to py in eric6
        JonBJ 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          Using Qt Designer chapter from PyQt's documentation.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @SGaist said in Convert .ui to .py file?:

          Hi,

          Using Qt Designer chapter from PyQt's documentation.

          Oh, wow!! I have been developing with PyQt for a while now. I simply assumed that meant I could not use Qt Designer, as it would be C++ only. This is very useful information.

          1. So Qt Designer simply produces XML. The you can either turn it into C++ code by Qt's uic or load the .ui file as-is via QUiLoader. Is that right? And both of these approaches are available via PyQt equivalents?

          2. You can't use Qt Creator for Python. I presume that "integrates" Qt Designer inside itself? Does that invoke uic behind the scenes, or does that go down the "dynamic loading of the .ui file" route?

          1 Reply Last reply
          0
          • K Ken_Du

            @Dl10 if you has install eric6, you can build *py for *ui easily.

            1. Install eric6 from : [https://sourceforge.net/projects/eric-ide/files/eric6/stable/6.1.7/](link url)
              Download and install by python install.py install. When you install successfully, you will find eric6/eric6.pyw.Open it with python
            2. you can easily compile the ui to py in eric6
            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Ken_Du
            I use PyCharm as my Python/PyQt IDE, and I shan't be moving off that. But OOI does your eric really do much other than allow you to convert .ui to .py, which I see I can do via PyQt's pyuic5?

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved