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

PyQt, .ui and .exe

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 3 Posters 1.0k 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 9 Nov 2022, 19:37 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Nov 2022, 19:40 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 9 Nov 2022, 19:54 last edited by
        #3

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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 9 Nov 2022, 19:58 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 13 Nov 2022, 11:17
          1
          • F Offline
            F Offline
            fornakter
            wrote on 9 Nov 2022, 20:05 last edited by
            #5

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

            1 Reply Last reply
            0
            • S SGaist
              9 Nov 2022, 19:58

              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 13 Nov 2022, 11:17 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?

              J 1 Reply Last reply 13 Nov 2022, 11:42
              0
              • F fornakter
                13 Nov 2022, 11:17

                @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?

                J Online
                J Online
                JonB
                wrote on 13 Nov 2022, 11:42 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

                1/7

                9 Nov 2022, 19:37

                • Login

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