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

Gallery example no longer respects the style that was set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.0, 6.1.0 RC
    • 6.0
    • Quick: Controls 2
    • None
    • Ubuntu 18.04.3
    • bb333700054e4c1e699d907e67f4e6be498968a1 (qt/qtquickcontrols2/dev)

    Description

      Using any of the supported methods to set a style no longer works with the Gallery example.

      When running the example with QT_LOGGING_RULES=qt.quick.controls*=true, this is the output:

      15:53:10: Starting /home/mitch/dev/qt-dev-debug/qtquickcontrols2/examples/quickcontrols2/gallery/gallery ...
      qt.quick.controls.style: resolving style
      qt.quick.controls.style: done resolving:
          style="Material"
          custom=false
          resolved=true
          fallbackStyle=""
          fallbackMethod=":/qtquickcontrols2.conf"
          configFilePath=":/qtquickcontrols2.conf"
      qt.quick.controls.qtquickcontrols2plugin: registerTypes() called with uri QtQuick.Controls
      qt.quick.controls.style: resolving style
      qt.quick.controls.style: done resolving:
          style="Material"
          custom=false
          resolved=true
          fallbackStyle=""
          fallbackMethod=":/qtquickcontrols2.conf"
          configFilePath=":/qtquickcontrols2.conf"
      qt.quick.controls.qtquickcontrols2plugin: style: "Material" effective style: "Material" fallback style: "" effective fallback style: "Default"
      qt.quick.controls.qtquickcontrols2plugin: creating QQuickTheme instance to be initialized by style-specific theme of "Material"
      qt.quick.controls.qtquickcontrols2plugin: calling qmlRegisterModuleImport() to register fallback style with uri " QtQuick.Controls " moduleMajor -1 import "QtQuick.Controls.Default" importMajor -2
      qt.quick.controls.qtquickcontrols2plugin: calling qmlRegisterModuleImport() to register primary style with uri "QtQuick.Controls" moduleMajor -2 import "QtQuick.Controls.Material" importMajor -2
      qt.quick.controls.styleplugin: registerTypes called with uri QtQuick.Controls.Material; plugin name is "Material"
      qt.quick.controls.styleplugin: registerTypes called with uri QtQuick.Controls.Default; plugin name is "Default"
      qt.quick.controls.styleplugin: registerTypes called with uri QtQuick.Controls.Universal; plugin name is "Universal"
      qt.quick.controls.control.itemmanagement: hiding old item QQuickListView(0x6110001cb780, parent=0x6110001c3940, geometry=24,6 192x32)
      qt.quick.controls.control.itemmanagement: hiding old item QQuickListView(0x6110001c8d00, parent=0x6110001c68c0, geometry=24,6 192x2)
      15:53:12: /home/mitch/dev/qt-dev-debug/qtquickcontrols2/examples/quickcontrols2/gallery/gallery exited with code 0
      

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes