Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Developing with QtQuick... What package is missing?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
andig
n00b
n00b


Joined: 27 Feb 2015
Posts: 33
Location: Germany

PostPosted: Thu Aug 27, 2015 8:53 am    Post subject: Developing with QtQuick... What package is missing? Reply with quote

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
View user's profile Send private message
kensington
Developer
Developer


Joined: 02 Jan 2013
Posts: 177
Location: Australia

PostPosted: Thu Aug 27, 2015 10:41 am    Post subject: Reply with quote

Do you have dev-qt/qtquickcontrols built with USE="widgets"?
Back to top
View user's profile Send private message
andig
n00b
n00b


Joined: 27 Feb 2015
Posts: 33
Location: Germany

PostPosted: Thu Aug 27, 2015 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum