Qt for Python and pre-existing Qt installation
-
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)?
-
Hi,
It's the former. It is self contained.
Are you using QProcess to start your python interpreter ? -
Hi,
It's the former. It is self contained.
Are you using QProcess to start your python interpreter ? -
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.