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

[REG?] QQuickStyle::setFallbackStyle() not working any more in 5.14 on Android

    XMLWordPrintable

Details

    • Android
    • 28610e13e453c33d7118834a0effb7ac87427ffe (qt/qtquickcontrols2/5.14)

    Description

      Our app uses a custom QQuick.Controls 2 style with a fallback style to "Material"

      Building the app with 5.14, on android, this doesn't work any more. 

      This code:

          qDebug() << "styles:" << QQuickStyle::availableStyles();
          QQuickStyle::setFallbackStyle("Material");
      

      throws the following error:

      D nymea-app: styles: ("Default", "Fusion", "Imagine", "Material", "Universal")
      W nymea-app: ERROR: unable to locate fallback style "Material"
      I nymea-app: QQuickStyle::setFallbackStyle(): the fallback style must be the name of one of the built-in Qt Quick Controls 2 styles.
      

      This used to work fine on Android builds with Qt < 5.14 and still works on Linux Desktop with Qt 5.14.

       

      Also this

      QQuickStyle::setStyle("Material");
      

      still works fine.

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            mzanetti2 Michael Zanetti
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes