Hi,

I have a static build of Qt and when I try to use things like ButtonStyle of even a basic Button from QtQuickControls I have the following errors:

*qrc:/QtQuick/Controls/Button.qml:66:1: BasicButton is not a type*

If I try to comment down all ocurrences to Buttons, it will happen with other controls. I'm linking with the QtQuickControlsPlugin and all the necessary plugins:

CONFIG(debug, debug|release) {
LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick.2 qtquick2plugind.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Window.2 windowplugind.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Controls qtquickcontrolsplugind.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Layouts qquicklayoutsplugind.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Extras qtquickextrasplugind.lib
} else {
LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick.2 qtquick2plugin.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Window.2 windowplugin.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Controls qtquickcontrolsplugin.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Layouts qquicklayoutsplugin.lib LIBS += -LC:\Qt\5.6\msvc2013_opengl_x86_static\qml\QtQuick\Extras qtquickextrasplugin.lib
}

And i'm also calling the initialization of this plugins:

qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuick2Plugin().instance())->registerTypes("QtQuick");
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuick2WindowPlugin().instance())->registerTypes("QtQuick.Window");
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuickControlsPlugin().instance())->registerTypes("QtQuick.Controls");
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuickControlsPlugin().instance())->registerTypes("QtQuick.Controls.Styles");
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuickControlsPlugin().instance())->registerTypes("QtQuick.Controls.Private");
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuickExtrasPlugin().instance())->registerTypes("QtQuick.Extras");

What am I missing?

Thanks in advance.

Regards,

Nuno
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to