I am working on a GUI and I’ve run into a problem. If I set a button, label, or other widget to have a background color, the tooltip for that widget also takes the same background color. I tried editing the style sheet for the tooltip specifically and setting a different background color but it doesn’t work. I also tried editing the palette for the widget but changing the color scheme for the tooltip background or text doesn’t work either. Is there another way I can do this? I’d like to have consistency between all my tooltips.
Thanks!
You can do something like this to style a
QToolTipin general.When you need to style
QToolTipsspecifically, based on their parent widget you can use following syntax:Reading this will help you further.