Linux Mint Cinnamon - tooltip font color bug

Matic Kukovec kukovecmatic at hotmail.com
Mon Aug 21 08:29:06 BST 2023


Hi,

Specs:

  *   Linux Mint 21.2 - Cinnamon desktop
  *   Python 3.10
  *   PyQt 6.5.1

Note: this is an issue exclusive to Linux Mint Cinnamon.
When setting a custom stylesheet for QTooltip, the application does not respect the font. Example:
The global stylesheet is:
"""
...

QTooltip {
      background: red;
      color: white;
      border: white;
}

...
"""
and the tooltips look like this:
[cid:0aaaad8f-af31-4295-8b9a-2936bd6eb638]
The font is black, but it should be white!

This is probably a Qt issue, because if the QTooltip style is removed from the stylesheet and default
OS stylesheets are used, they have the same problem as reported by this user:
https://github.com/linuxmint/cinnamon/issues/11820 (the first post)

Is there a way to circumvent this in PyQt6 until this is fixed?

Thanks
Matic

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230821/1350cd2a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 71154 bytes
Desc: image.png
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230821/1350cd2a/attachment-0001.png>


More information about the PyQt mailing list