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

Mac: QPushButton styleSheet color not applied to the dropdown menu icon color

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.5.0
    • Widgets: Style Sheets
    • None
    • macOS

    Description

      This issue is about the QPushButton dropdown menu icon color not changing for Mac.

      We expect that the QPushButton `color` that we set should also be applied to the dropdown menu icon color – which is the behavior for Linux and Windows but NOT in Mac.

      Note: The QPushButton dropdown menu icon default color is black that's why it's not visible when we set the QPushButton background-color to black.

      Code snippet:

      QPushButton {\
          text-align: left;\
          padding: 0 2px 0 2px;\
          margin: 0;\
          background-color: rgba(%1,%2,%3,%4);\
          font-size: %5px;\
          font-family: %6;\
          color: rgba(%7,%8,%9,%10);\
          border: 1px solid rgba(%11,%12,%13,%14);\
      }\
      

      Attachments

        1. win-screenshot.png
          win-screenshot.png
          2 kB
        2. mac-screenshot.png
          mac-screenshot.png
          2 kB
        3. linux-screenshot.png
          linux-screenshot.png
          2 kB
        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
            renzmarcelo Renz Marcelo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes