<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Specs:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<ul data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}">
<li style="list-style-type: disc;">Linux Mint 21.2 - Cinnamon desktop</li><li style="list-style-type: disc;">Python 3.10</li><li style="list-style-type: disc;">PyQt 6.5.1</li></ul>
<div class="ContentPasted2">Note: this is an issue exclusive to Linux Mint Cinnamon.<br>
</div>
<div>When setting a custom stylesheet for QTooltip, the application does not respect the font. Example:</div>
<blockquote style="margin-top:0;margin-bottom:0">
<div>The global stylesheet is:</div>
<div>"""</div>
<div>...</div>
<div><br>
</div>
<div>QTooltip {</div>
<div><span> </span>background: red;</div>
<div><span> </span>color: white;</div>
<div><span> </span>border: white;<br>
</div>
<div>}</div>
<div><br>
</div>
<div>...<br>
</div>
<div>"""</div>
<div>and the tooltips look like this:</div>
<div><img style="max-width:100%" class="ContentPasted0 w-601 h-573" size="71154" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:0aaaad8f-af31-4295-8b9a-2936bd6eb638"></div>
<div>The font is black, but it should be white!<br>
</div>
</blockquote>
<div><br>
</div>
<div>This is probably a Qt issue, because if the QTooltip style is removed from the stylesheet and default<br>
</div>
<div class="ContentPasted1 ContentPasted3 ContentPasted4">OS stylesheets are used, they have the same problem as reported by this user:<br>
</div>
<div class="ContentPasted1"><a href="https://github.com/linuxmint/cinnamon/issues/11820" id="LPNoLPOWALinkPreview">https://github.com/linuxmint/cinnamon/issues/11820</a> (the first post)<br>
</div>
<div class="ContentPasted1"><br>
</div>
<div class="ContentPasted1">Is there a way to circumvent this in PyQt6 until this is fixed?</div>
<div class="ContentPasted1"><br>
</div>
<div class="ContentPasted1">Thanks</div>
<div class="ContentPasted1">Matic<br>
</div>
<div class="ContentPasted1">
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</div>
</div>
</body>
</html>