[Interest] Using QtQuickControls 2 within a static build of Qt 5.7

Mitch Curtis mitch.curtis at qt.io
Thu Jul 28 14:01:34 CEST 2016

Do you have any issues creating a standard Qt Quick Controls 2 application against a static Qt? I just tried with a very basic application and it worked without issues (Ubuntu 16.04, Qt 5.7).

From: Interest [mailto:interest-bounces+mitch.curtis=qt.io at qt-project.org] On Behalf Of Nuno Santos
Sent: Wednesday, 27 July 2016 4:26 PM
To: Qt Project MailingList <interest at qt-project.org>
Subject: [Interest] Using QtQuickControls 2 within a static build of Qt 5.7


I’m not being able to use QtQuickControls 2 in a static build of Qt. In order to register the QtQuick stuff within Qt 5.6 I had to manually link with the plugin lib and initialise the plugins manually. I think this was because of a bug: https://bugreports.qt.io/browse/QTBUG-35754

Apparently the bug was fixed and I should be able to use normally however there are no instructions for that so I’m using same registering process I had for QtQuickControls with some nuances and now I have this:




However, it complains about not knowing nothing about, e.g. Slider. It also gives an error: qmlRegisterType requires absolute URLs. I have digged the source down and the qmlRegisterType functions has the following validation:

if (url.isRelative()) {
          // User input check must go here, because QQmlPrivate::qmlregister is also used internally for composite types
          qWarning("qmlRegisterType requires absolute URLs.");
          return 0;

So I supposed the types end up not being registered anyway. By the time the plugin is registered, the following url is being passed to the first registration: "qrc/ApplicationWindow.qml”

What am I missing here?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160728/e6fb03f6/attachment.html>

More information about the Interest mailing list