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

Fallback style works differently in Qt6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0
    • Quick: Controls 2
    • None
    • Linux/Wayland

    Description

      I tried to enable a custom style in an application, but learned that there's a stark difference in how fallback styles work between Qt5 and Qt6. I wonder if this is intentional, or a bug that should be fixed.

      Non-existent styles do not use the fallback theme in Qt6, but instead emit an error and the engine stops like so:

      qrc:/main.qml: module "foobar" is not installed

      In Qt5, the fallback style is used like I would expect. We can work around this by checking the import path, but this gets complicated as most of the QQuickStyle API is gutted (like availableStyles). I'd rather not have to do that at all

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            redstrate Joshua Goins
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: