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

QToolTip doesn't pick up the color field from the stylesheet on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.5.2
    • Widgets: Style Sheets
    • None
    • Windows

    Description

      On windows (we were not able to reproduce this on MacOS), the color field of the QToolTip doesn't get picked up by the stylesheet.

      This started to happen when we've upgraded to Qt6.

      Attached is a little python program to reproduce the issue with PySide6.

      • Loads a stylesheet that sets the color of QPushButton and QToolTip
      • Creates a button with a tooltip
      • See that the tooltip text color is not red as specified in the stylesheet

      This issue is a blocker for us as we cannot deploy our application with Qt6 to our customers.

      Attachments

        1. stylesheet.qss
          0.1 kB
          Eric Smolikowski
        2. tooltip_stylesheet.py
          0.8 kB
          Eric Smolikowski
        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
            esmolikowski Eric Smolikowski
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes