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

QQuickStyle::setFallbackStyle is broken on iOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.3
    • Fix Version/s: 5.9.4
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Reproduced on iOS10, iOS11.
    • Platform/s:
      iOS/tvOS/watchOS
    • Commits:
      3e3c57188c868d2c3d434c2e3b876ac89b40ae2f

      Description

      If you try to use a custom QuickControls style together with a Fallback Style for controls you didn't override, the Fallback Style is not set if the application is running on iOS.

      The following lines are shown within the log output when running on an iOS device.

      ERROR: unable to locate fallback style "Universal"
      QQuickStyle::setFallbackStyle(): the fallback style must be the name of one of the built-in Qt Quick Controls 2 styles.

       

      I created a minimal sample application to illustrate the bug. If this application is run on another plattform (I tried Windows, Ubuntu Linux, macOS and android), the FallbackStyle is set correctly, and the Application has a dark background, as expected.

      If you run this application on an iOS device, it shows a white Background, and a style that resembles the "Default" style more.

       

      Note: If you use "Universal" within the setStyle()-Function, the style is correct also on the iOS device.

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jan.lorenz Jan Lorenz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes