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. what should I do in QtCreator to be able to run python apps?
Forum Updated to NodeBB v4.3 + New Features

what should I do in QtCreator to be able to run python apps?

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 2 Posters 966 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.
  • S Offline
    S Offline
    sinpool
    wrote on last edited by sinpool
    #1

    I have Python interpreter in kits section, but when I hit run button it starts to build but never ends
    I also tried to run that code in terminal and pycharm, both works just fine, here's kits options in QtCreator:
    75a57c1c-4e35-4fae-965b-dab828233dbc-image.png
    is there anything I should do to make it run?

    1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      This looks like a duplicate of https://forum.qt.io/post/808991
      Just check our documentation, it's all described nicely!

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      1
      • S Offline
        S Offline
        sinpool
        wrote on last edited by sinpool
        #3

        why duplicate? I couldn't run a simple pyqt program with QtCreator run button but it runs with terminal and PyCharm

        1 Reply Last reply
        0
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by Axel Spoerl
          #4

          PyQt is not part of Qt and not supported in this forum. It's made by Riverbank Computing.
          Your other post is writing about pyside, which is indeed from Qt.
          You posted exactly the same screenshot in https://forum.qt.io/post/808991.
          We established that it doesn't work, because you actually want to combine Python with QML and use the widget designer, the latter being the reason for the failure.

          Now you post the same screen shot again, asking why Qt Creator doesn't work with a Python product that has nothing to do with Qt Creator.
          I am confused, honestly.

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sinpool
            wrote on last edited by sinpool
            #5

            the problem is it doesn't show any errors, just gets stuck at building without any messages, and about PyQt I tried both PySide and PyQt both and no luck
            this is compile output of program:

            image.png
            it doesn't progress any, I let it run for 10mins and no progress but when I run with terminal it runs so fast

            my issue is why same app runs when I run it in QtCreator terminal but it doesn't run when I try the run button in QtCreator if that's confusing sorry
            its an example from this page tried to run in QtCreator but its stuck on build, while it runs from QtCreator terminal

            and now it shows this message in compile output:
            0328b37c-77cb-4ae2-844b-3d109b84e437-image.png

            1 Reply Last reply
            0
            • Axel SpoerlA Offline
              Axel SpoerlA Offline
              Axel Spoerl
              Moderators
              wrote on last edited by
              #6

              Post the code of your program, using the code formatting tags.

              Software Engineer
              The Qt Company, Oslo

              1 Reply Last reply
              0
              • Axel SpoerlA Offline
                Axel SpoerlA Offline
                Axel Spoerl
                Moderators
                wrote on last edited by Axel Spoerl
                #7

                So we're back to running QML, extended by Python, which makes this topic a duplicate.
                I'll lock this topic. Follow my advice on https://forum.qt.io/post/808991.

                Software Engineer
                The Qt Company, Oslo

                1 Reply Last reply
                0
                • Axel SpoerlA Axel Spoerl locked this topic on

                • Login

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