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

ComboBox: can't customize popup palette

    XMLWordPrintable

Details

    • All
    • 28454b503c7e77a85855e1cc5911908d46d29366 (qt/qtquickcontrols2/5.12) 10023b188bb84d631fea53baa9ce5997f3fc286d (qt/qtquickcontrols2/5.12)

    Description

      See attached.

      While it is indeed possible to customize a ComboBox by redefining its items, sometimes a quick solution is just to act on palette colors.

      For example, to achieve a dark theme, one could override palette.base and palette.text.

      However, the combo popup is not affected at all. See Screenshot_20181228_145719.

      Patch proposed. See screenshot: patched_control

      Attachments

        1. combobox_palette.qml
          0.4 kB
          Massimo Callegari
        2. image-2019-03-26-11-19-43-479.png
          7 kB
          Massimo Callegari
        3. patched_control.png
          6 kB
          Massimo Callegari
        4. Screenshot_20181228_145719.png
          6 kB
          Massimo Callegari

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mcallegari79 Massimo Callegari
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: