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

Android: Qt Widget apps unusable on Android 5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.4.0 RC
    • GUI: Look'n'Feel
    • None
    • Android
    • ab6d645850e88f3e351d196bf009135b6189ba8a

    Description

      We've recently started extracting the system palette in the Android platform plugin to get the correct colors in the Android style. This works well with Qt Quick Controls, but unfortunately, the widget styles do not play well with the extracted palette on Android 5. It seems that the palette we extract gets black as both the text color and the background color of many items, such as buttons and line edits, so it's unusable.

      We need to find out why these colors are being reported. If it's correct, then we need to disable the system palette for the android widget style until the style is fixed. If it's not (if for instance it fails to get a text color and just defaults to black), then we need to pick a smarter default which contrasts against the background.

      A work-around for this is to call QApplication::setStyle("fusion") before creating your QApplication. This will override the system palette on Android 5 and use the fusion style for widgets instead of the Android style.

      Attachments

        1. Screenshot_2014-11-26-13-35-50.png
          43 kB
          Dominik Fehr
        2. Screenshot_2014-11-28-11-46-55.png
          19 kB
          Dominik Fehr

        Issue Links

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: