What is the Minimum Qt version for PythonQt3.0?
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
My initial attempt to build PythonQt3.0 with Qt version 4.8.2 failed. I thought I had read that Qt version 4.6.1 was the minimum required. I ended up having to comment or remove several things in PythonQt3.0 to achieve a successful build. I need to use Qt version 4.8.2 because it is the only version available to install on the Raspberry Pi without having to compile a different version of Qt on the Raspberry Pi. It was easier to comment a few seemingly inconsequential portions of PythonQt3.0 than to build Qt. The portions I removed include a few members of the Language enum, Type enum, LoadHint enum, and the adoptLayout function. These may have been added to a later version of Qt but I suspect I can do without them. Does this seem like the proper way to have handled this predicament?
What you did is a valid solution.
Alternatively you could build the pythonqt_generator and run it on Qt 4.8.2 headers to generate wrappers for the exact version. I actually don't remember which version I used for the checked in 4.8 version...
Another option would be to tweak the profile and build against the qt 4.7 wrappers which are part of the repository.
Thanks. I hadn't read enough of the documentation to understand the purpose of pythonqt_generator because I was using a Qt version later than 4.6.1 but it is clear now. If I had known, I would have used it instead because it seems more appropriate. The checked in version worked with 4.8.6 on my PC but that was before I discovered the RPi had 4.8.2.