Qt5 QML error QtQuick QtGraphicalEffects is not installed

jtomaszk picture jtomaszk · May 29, 2013 · Viewed 10.2k times · Source

After successful compilation of project, I have get an executable file.

When I type ./program in result I see:

QML Error: qrc:///qml/main.qml:25:1:module "QtGraphicalEffects" is not installed
qrc:///qml/main.qml:24:1:module "QtQuick" is not installed

I'm using QtQuick 2.0, Qt5 and Ubuntu, QtQuick and QtGraphicalEffects are in ~/Qt5.0.2/5.0.2/gcc/qml/ I have install fresh Qt SDK from site project.

I have tried run this application also on Windows 7 but with the same result.

Could anyone help?

Answer

TheBootroo picture TheBootroo · Feb 15, 2014

This is because Windows or whatever OS you use doesn't know the location of Qt install directory and it can't find the QML plugins sub-dir when you run app outside QtCreator.

You have to take the following directories from your SDK install and copy them beside your executable (and DLL) :

<SDK install path>/<Qt version>/<compiler name>/qml/QtQuick.2
<SDK install path>/<Qt version>/<compiler name>/qml/QtGraphicalEffects

And it should work fine.