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 Updated to NodeBB v4.3 + New Features

Convert .ui to .py file?

Scheduled Pinned Locked Moved Unsolved Language Bindings
5 Posts 4 Posters 13.8k Views 1 Watching
  • 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 26 Dec 2017, 13:26 last edited by A Former User 1 Jan 2018, 13:28
    #1

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

    K 1 Reply Last reply 31 Dec 2017, 10:33
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Dec 2017, 23:33 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

      J 1 Reply Last reply 2 Jan 2018, 10:03
      2
      • D Dl10
        26 Dec 2017, 13:26

        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 31 Dec 2017, 10:33 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
        J 1 Reply Last reply 2 Jan 2018, 10:07
        1
        • S SGaist
          26 Dec 2017, 23:33

          Hi,

          Using Qt Designer chapter from PyQt's documentation.

          J Offline
          J Offline
          JonB
          wrote on 2 Jan 2018, 10:03 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
            31 Dec 2017, 10:33

            @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
            J Offline
            J Offline
            JonB
            wrote on 2 Jan 2018, 10:07 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

            1/5

            26 Dec 2017, 13:26

            • Login

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