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

Applying opacity by Stylesheet makes tooltips humogous

XMLWordPrintable

    • Windows
    • 7c5c857679a0f58ca8fe5dcc9f8de3e3d83f0290 (qt/qtbase/5.12)

      ToolTip is shown in giant size when setting its opacity by StyleSheet. 

       

      How to reproduce:

      1. Use ToolTip example : "https://doc.qt.io/qt-5/qtwidgets-widgets-tooltips-example.html"

      2. Add the following line at the end of SortingBox::SortingBox(...) constructor   

      qApp->setStyleSheet("QToolTip {opacity: 200; color: blue}");
      

       

       

       This phenomenon doesn't happen in Qt5.12.2 or Qt5.13.0

        1. Tooltips-OK.png
          216 kB
          Nahomi Gröhn
        2. Tooltips-NOK.png
          209 kB
          Nahomi Gröhn
        3. qtbug75455.zip
          2 kB
          Friedemann Kleint
        4. qtbug75455_diag.diff
          11 kB
          Friedemann Kleint
        5. qtbug75455_log.txt
          16 kB
          Friedemann Kleint
        For Gerrit Dashboard: QTBUG-75455
        # Subject Branch Project Status CR V

            kleint Friedemann Kleint
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes