Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48404

ButtonStyle is not a type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.6.0 Alpha
    • Quick: Controls 1
    • None
    • Qt 5.6.0 Alpha (configure -prefix c:\qt\5.6\msvc2013_opengl_x86_static -commercial -debug-and-release -static -nomake examples -nomake tools -nomake tests -opengl desktop -skip multimedia)

      I have tried Qt 5.6.0 Alpha to see if I could manage to successfully create a static linked plugin. I was having a problem similar to QTBUG-35754 (QtQuick and QtQuick.Controls modules are not available at runtime static).

      It happens that the problem seems partially fixed. It doesn't complain about:

      module "QtQuick" is not installed
      module "QtQuick.Controls" is not installed

      but it complains about being unable to find qml files that belongs to those plugins such as ButtonStyle, StackViewSlideDelegate.qml and so on.

      I'm initialising 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");

      Am I missing some initialisation or this is still a bug?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            sinosoidal Nuno Santos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes