Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 3.5.0
-
None
-
Mageia Linux Cauldron, Plasma 5, x86_64, gcc 5.2.1
Description
Qt Creator modifies environment variables and prepends PATH, LD_LIBRARY_PATH etc to contain proper path for current Qt configuration. But it does not changes variables for QML imports.
After I updated my system from KDE4 to Plasma 5, I have this variables defined in my environment:
QML2_IMPORT_PATH=/usr/lib64/qml:/usr/lib64/qt5/qml
QML_IMPORT_PATH=/usr/lib64/qml:/usr/lib64/qt5/qml
This leads to a program, started by Qt Creator using QML plugins from system instead of current Qt version program built with.
I have Qt 5.5.0 installed in my system. When I compile template QtQuick 2 project with Qt 5.6 Alpha and run it in Qt Creator, it crashes with the following error:
ASSERT: "window->type() == Qt::Desktop || !window->supportsOpenGL() || (!glIntegration && window->surfaceType() == QSurface::RasterGLSurface)" in file qxcbintegration.cpp, line 207
If I go to run configuration of the project and clear QML_IMPORT_PATH here, program not crashes.
This is not obvious, so it is better to add into beginning of this variables proper path to current Qt directory.
Also, I see some other variables that points to the system Qt version:
QT4DOCDIR
QT5DOCDIR
QTDIR5
QT_PLUGIN_PATH