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

QComboBox shown with black popup background

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7.1, 6.8.0 FF
    • 6.7.0 Beta3, 6.7.0 RC, 6.7.0 RC2
    • None
    • windows 10 x64
    • Windows
    • f5d5a42dc (dev), 251bddc66 (6.7)

    Description

      When displaying a QComboBox inside a QScrollArea, the background of the combobox popup is displayed in black, rather than white.

      6.6.2

       

      6.7.0 RC1

      Only occurs on Windows, using windows11 or windowsvista styles. Fusion or Windows styles are not affected.

      I have attached a simple demonstration of the problem.

       

      Note: the problem can be mitigated by setting a style sheet for the combobox, e.g.:
          a.setStyleSheet("QComboBox QAbstractItemView {background-color: red}");

      gives you:

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            michael.partridge Michael Partridge
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes