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. PyQt, .ui and .exe
Qt 6.11 is out! See what's new in the release blog

PyQt, .ui and .exe

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 3 Posters 1.4k 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.
  • F Offline
    F Offline
    fornakter
    wrote on last edited by
    #1

    Hi.
    Its my first project on Qt
    I just create an simple app, and i want to create .exe file. But i cant find how to create an .exe with .ui file.
    How can i do that?

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

      Hi and welcome to devnet,

      Your question is bit hard to follow.

      Either you generate a Python file from the .ui file and use it in your project or you load the .ui file using Python code. In which case are you ?

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

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fornakter
        wrote on last edited by
        #3

        Secound.
        I use a .ui file in my project, with commend 'loadUi'

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

          I would recommend checking the Qt for Python Deployment guide for suggestions on how to deploy python based application.

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

          F 1 Reply Last reply
          1
          • F Offline
            F Offline
            fornakter
            wrote on last edited by
            #5

            Ok... i think i start over again without .ui, just write everything with my hands :)

            1 Reply Last reply
            0
            • SGaistS SGaist

              I would recommend checking the Qt for Python Deployment guide for suggestions on how to deploy python based application.

              F Offline
              F Offline
              fornakter
              wrote on last edited by
              #6

              @SGaist Ok, i convert it to .py and making a working app.
              When i create an .exe from .py, i recive an error: ModuleNotFoundError: No module named 'PyQt5'
              Can You help me with that?

              JonBJ 1 Reply Last reply
              0
              • F fornakter

                @SGaist Ok, i convert it to .py and making a working app.
                When i create an .exe from .py, i recive an error: ModuleNotFoundError: No module named 'PyQt5'
                Can You help me with that?

                JonBJ Online
                JonBJ Online
                JonB
                wrote on last edited by
                #7

                @fornakter said in PyQt, .ui and .exe:

                When i create an .exe from .py,

                And how do you do that? Presumably look at the documentation for the tool.

                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