Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Python code for .ui file
Forum Updated to NodeBB v4.3 + New Features

Python code for .ui file

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 3 Posters 354 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.
  • G Offline
    G Offline
    Gator
    wrote on 20 May 2025, 05:47 last edited by
    #1

    I've designed and saved .ui file
    Where is the python code for that file created in QT Creator or how do I generate it.
    All I see is the .ui file itself.

    J 1 Reply Last reply 20 May 2025, 05:58
    0
    • G Gator
      20 May 2025, 05:47

      I've designed and saved .ui file
      Where is the python code for that file created in QT Creator or how do I generate it.
      All I see is the .ui file itself.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 20 May 2025, 05:58 last edited by
      #2

      @Gator You need to execute the pyuic tool, see https://stackoverflow.com/questions/18429452/convert-pyqt-ui-to-python

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • F Offline
        F Offline
        friedemannkleint
        wrote on 20 May 2025, 12:14 last edited by
        #3

        See also https://doc.qt.io/qtforpython-6/tutorials/basictutorial/uifiles.html#tutorial-uifiles . If you create a Python project in Qt Creator, it will do this automatically when running the project.

        1 Reply Last reply
        4

        3/3

        20 May 2025, 12:14

        • Login

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