[Interest] Qt 5.6 Alpha (static build) - ButtonStyle is not a type

Nuno Santos nunosantos at imaginando.pt
Tue Sep 22 16:40:22 CEST 2015


Hi,

Today I have given a try to Qt 5.6 Alpha. So far so good.

I was having two major issues:

QTBUG-48335 - QApplication fails to start on release mode when using Qt 
as a backend of a plugin (Windows)
QTBUG-35754 - QtQuick and QtQuick.Controls modules are not available at 
runtime static

Both seem to be fixed on Qt 5.6 Alpha which is awesome! However, my 
worries aren't finished yet. It is still complaining about not finding 
ButtonStyle type.

I'm manually registering the plugins with the following code:

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_QtQuickExtrasPlugin().instance())->registerTypes("QtQuick.Extras");
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuickControlsPlugin().instance())->registerTypes("QtQuick.Controls.Styles");
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuickControlsPlugin().instance())->registerTypes("QtQuick.Controls.Private");

ButtonStyle is included in QtQuick/Controls/Styles/Base/ButtonStyle.qml 
isn't the 
qobject_cast<QQmlExtensionPlugin*>(qt_static_plugin_QtQuickControlsPlugin().instance())->registerTypes("QtQuick.Controls.Styles"); 
call enough?

Am I missing some particular initialization or is this still a bug? Any 
ideas?

Thanks,

Regards,

Nuno



More information about the Interest mailing list