Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt for Python and pre-existing Qt installation
Forum Updated to NodeBB v4.3 + New Features

Qt for Python and pre-existing Qt installation

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 396 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.
  • B Offline
    B Offline
    Bob64
    wrote on last edited by
    #1

    I wondered about posting this in the "Qt for Python" but I think this question is more about how things are organised under the hood in the installation.

    I am interested in making some use of Qt for Python from a Python-based component of the product I work on. The product already has a QT-based GUI using QML and C++. My company creates a custom build of QT that is used by different parts of the business. The Python component runs as a sub-process of the GUI and, in case it sounds like an odd thing to want to do, the planned Qt for Python usage is for a hidden "developer tool".

    It seems from reading about Qt for Python that one pip installs it into a Python environment. However, what isn't clear is whether this installation is self-contained - i.e. does it come with all the Qt DLLs, or is one meant to connect it somehow to an existing Qt installation like the one I am already using for C++ development? If the latter, how does one do it? If the former, is there a danger of things getting confused if my Python-based component is running from the Qt GUI (so that the Qt DLLs from my installation are already on the path)?

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

      Hi,

      It's the former. It is self contained.
      Are you using QProcess to start your python interpreter ?

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

      B 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        It's the former. It is self contained.
        Are you using QProcess to start your python interpreter ?

        B Offline
        B Offline
        Bob64
        wrote on last edited by
        #3

        @SGaist thank you. Yes, it does use QProcess.

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

          Since it's a new process, I think the environment should be clean. The simplest is to create a test application where you mix both as you intend to do in your main application.

          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

          • Login

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