View previous topic :: View next topic |
Author |
Message |
andig n00b
Joined: 27 Feb 2015 Posts: 33 Location: Germany
|
Posted: Thu Aug 27, 2015 8:53 am Post subject: Developing with QtQuick... What package is missing? |
|
|
Hello all,
I am trying to learn programming with QtQuick. I have installed Qt 5.5.0 with the sets @qt5-addons, @qt5-essentials, @qt5-tools which I think should be all that Qt offers.
I created a new project with Qt Creator, selected Qt Quick Controls 1.3 and tried to start the example project with the three buttons.
On one computer it just works, on the other one the application just hangs and displays an error message on the console:
Code: | #include <QApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QQmlApplicationEngine engine; // hangs here
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
} |
Code: | QML debugging is enabled. Only use this in a safe environment.
QQmlApplicationEngine failed to load component
qrc:/main.qml:33 Type MessageDialog unavailable
qrc:/QtQuick/Dialogs/WidgetMessageDialog.qml:38 module "QtQuick.PrivateWidgets" is not installed |
I think the fact that it works on the first computer is, that I have installed Plasma 5 on this one. Maybe some application pulled in a dependency that makes it work. The qml Use-Flag is enabled on both computers.
But how can I figure out what is missing on the other one? |
|
Back to top |
|
|
kensington Developer
Joined: 02 Jan 2013 Posts: 177 Location: Australia
|
Posted: Thu Aug 27, 2015 10:41 am Post subject: |
|
|
Do you have dev-qt/qtquickcontrols built with USE="widgets"? |
|
Back to top |
|
|
andig n00b
Joined: 27 Feb 2015 Posts: 33 Location: Germany
|
Posted: Thu Aug 27, 2015 11:44 am Post subject: |
|
|
Yes, on both computers:
Code: | [I] dev-qt/qtquickcontrols
Available versions: (5) 5.4.2^t (~)5.5.0(5/5.5)^t[1] **5.5.9999(5/5.5)[1] **5.9999(5/5.9999)[1]
{debug test +widgets}
Installed versions: 5.5.0(5)^t[1](15:49:55 05.07.2015)(widgets -debug -test)
Homepage: https://www.qt.io/
Description: Set of controls used in conjunction with Qt Quick to build complete interfaces |
I think it might be interesting, that I am able to compile it successfully even if some dependency seems to be missing. |
|
Back to top |
|
|
|