Choose Qt Version to use with PySide? - qt

I've been working on a PySide project using Qt 4.8.5 for awhile. There's a bug with Qt 4.8.5 that I keep running into. After a bit of research, I found that the bug first appeared in Qt 4.8.0, but that it didn't exist in Qt 4.7.4. So I decided to try downgrading.
I went to http://download.qt-project.org/archive/qt/4.7/ and I downloaded and ran qt-win-opensource-4.7.4-vs2008.exe.
Afterwards, to check that I had actually downgraded, I tried this:
$ python
>>> import PySide.QtCore
>>> print(PySide.QtCore.__version__)
4.8.5
>>> print(PySide.QtCore.qVersion())
4.8.5
It appears that PySide is still using Qt 4.8.5 instead of Qt 4.7.4. Does anyone know how PySide determines which version of Qt to use when multiple are installed? I don't want to uninstall Qt 4.8.5, because my project already mostly works with it and I'm not certain that using Qt 4.7.4 will actually work better.
The PySide documentation says that PySide works with Qt versions 4.6, 4.7, and 4.8, so I don't think that should be the issue.
If it's important, I'm using a 64 bit version of Windows 7 and I do have Visual Studio 2008 installed.

If you want to use Qt 4.7.4, you need to build PySide against that version.
The version you downloaded is "bounded" to the 4.8 version.
However, you can download the 1.1.1 version of PySide, using Qt 4.7.4, from this link: http://download.qt-project.org/official_releases/pyside/

The Windows PySide distributions are stand alone with all Qt libs and utils embedded so it does not mattter which Qt you have installed in your system. Newest PySide 1.2.1 has Qt 4.8.5 embedded.

Related

QT version seems to be older than installed

I'm new to QT and QML, I found a cool KDE Plasma addon on the internet and wanted to edit it, but flushMode property, which I want to use, was introduced in QT 5.13. I have installed QT 5.15 (to be exact, 5.15.3), rebooted and got file:///filename.qml:58:2: "VideoOutput.flushMode" is not available in QtMultimedia 5.8. I also checked that qt5-multimedia is 5.15.3+kde+r0-1 (latest from arch linux repository), checked the QT version in system settings, everything says it's 5.15, but in the logs it acts like it's 5.8. Is it possible that I have 2 different qt5 installations, or why does this happen?
Yes, you very likely have two Qt installed. You got system Qt package that comes with desktop environment, I believe it does not include development files (headers), to obtain them you installed qt-something-dev package that installed another Qt as dependency.

Where to find PySide for Qt5.x

I know that the développement of PySide for that version of Qt is stopped, but for some cases, I want to install it.
Where can I download the last developped version of PySide for Qt 5.x ?
What you need is PySide2.
This wiki page tracks the progress of PySide for Qt 5.x development and provides further information concerning the effort:
http://wiki.qt.io/PySide2?
If you want to install it on anaconda:
conda install pyside2

Qt 5.4.1 MinGW 4.9.1 is with or without OpenGL?

From the official Qt website, the package "Qt 5.4.1 MinGW 4.9.1" is meant to be compiled with or without OpenGL support?
I saw that in the MSVC versions of the same package, OpenGL, when present, is specified. Does this apply also to MinGW? Or it is implicit?

A mess with Qt/Qwt versions - how to revert to original state?

I'm on Ubuntu 14.04 64-bit. I obviously made a mess by installing Qt Creator and Qt4 Designer. I've built and installed the Qwt (6.1.0) libraries (widgets) that are visible to Qt4 Designer but not to Qt Creator... I'm pretty sure it is the Qt (qmake) version that made these installations incompatible and messy...
The Qt Creator reports:
Qt Creator 3.0.1
Based on Qt 5.2.1 (GCC 4.8.2, 64 bit)
The Qt4 Designer reports:
Version 4.8.6
Both installations were done through synaptic utility. Later on, I've used an online installed from Qt project and installed another (opensource) version of Qt Creator (Based on Qt 5.3.2; GCC 4.6.1, 64 bit).
What I'd like to do is use Qwt widgets in Qt Creator and have a working version of Qt Designer (not it doesn't start; Segmentation fault).
Is there a way to wipe all Qt stuff and begin from scratch? Which directories, profiles, etc. should be erased?
Many thanks.
Assuming that you want to work with a Qt creator based on Qt 5.2 and you want to build an application using Qr 4.8.
a) build and install Qwt for Qt 4.8 - like always
b) build and install Qwt for Qt 5.2 ( maybe with enabling QwtDesignerSelfContained in qwtconfig.pri ).
Use qmake from the directory of the Qt version you want to build Qwt for.
Then all that's left to do is tell the creator where to find the plugin, that has been built for Qt 5.2 - f.e. by setting the QT_PLUGIN_PATH.

Setting up compiler in Qt 5.0.1 MSVC2010

I just installed Qt 5.0.1 MSVC2010 32bit, i need to configure the Kits and the compiler. I have installed minGW and its detected by Qt Automatically. But at Qt Version tab in Tools->Option->Build & Run menu, i get this:
No compiler can produce code for this Qt version
What should I do? which compiler I have to use? I can't build/run anything.
You should either use MSVS 2010 for your downloaded Qt or download the MinGW Qt distribution.

Resources