pythonqt
pythonqt copied to clipboard
Dynamic Python binding for Qt Applications
Sorry for breaking the old build system :disappointed: The changes to PythonQt(Safe)ObjectPtr are only needed if one calls Py_Finalize() I believe. In this case the destructor calls Py_DECREF after the...
I add the path of Python.h in PythonQt.pro ``` INCLUDEPATH += /Users/../anaconda3/include/python3.7m ``` but I still have three problems . What code I need to add to fix these problems...
Fix is in commit 5b22184. If a slot raises a python exception the python function must return NULL PyObject.
Hello, I use a custom wrapper to provide operators etc for a class. I also provide the py_toString function. Problem is if I return an empty string, then PythonQtInstanceWrapper_str returns...
Hi, I compiled PythonQt with MinGW 7.3.0 64-bit and MinGW 7.3.0 32-bit for debug and release. Before I did this, I installed the additional Python debug binaries (python38_d.dll) via the...
Hey @florianlink , @sboehmann , I've try to build a `.pyi` stub file (PEP 484) generator for the PythonQt module. I have to introspect the objects via `dir` function, but...
能把 qRegisterMetaType("WId"); 加入 PythonQt::init吗? 现在调用QWindow.fromWinId 提示: PythonQt: Can't create a copy of WId, either use qRegisterMetaType() or add a copy constructor to the decorator/wrapper.
I compiled PythonQt with mingw-g++ 7.3.0, and python 2.7 which I am not sure with the compiler(mostly it is vc). Everything works fine, except crashed when I tried to call...
``` connect(PythonQt::self(), SIGNAL(pythonStdErr(const QString&)), this, SLOT(log(const QString&))); PythonQt::self()->setImporter(NULL); Q_ASSERT(!mainModule.isNull()); mainModule.evalScript(QString("import sys,site\n")); mainModule.evalScript("for s in site.getsitepackages(): sys.path.append(s)\n"); mainModule.evalScript("sys.path.append(site.getusersitepackages())\n"); mainModule.evalScript("sys.path.append(':cashcode')\n"); // mainModule.evalScript("import serial\n"); mainModule.evalScript("import ccnet\n"); ``` On importing `serial` from module in...
There are two lightweight uniform APIs that lets users write Python code that interfaces with Qt regardless of the actual Python-Qt binding: - QtPy: https://github.com/spyder-ide/qtpy - Qt.py: https://github.com/mottosso/Qt.py They both...