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

QToolTip background cannot be styled without explicitly setting border

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3.1
    • Widgets: Style Sheets
    • None
    • Windows 10
    • Windows

    Description

      When a stylesheet is applied on a QToolTip the background will not get colorized. However the border will be. If the border property will be added explicitly to the stylesheet this problem doesn't appear anymore.

      Here is an example stylesheet.

      QToolTip {
        background: red;
        color: green;
      }

       

      A current workaround is. to set the border to none in the stylesheet.

       

      The same code was tested on macOS 12.4 and it doesn't have the same problem.

      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
            vjungbluth Victor Jungbluth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes