QToolButton setStyleSheet sets stylesheet on tooltip
-
Hello
I have a problem with a QToolButton. It is placed on a dark background, so the button textcolor is set to white with the stylesheet
@helpButton->setStyleSheet("color: white;");@And it works great. The problem is, that the button also has a tooltip, but now the textcolor of the tooltip is also set to white, but the tooltip background is almost white, so the text is not visible.
My question is, how do I set a stylesheet on my button that sets the textcolor to white, but keeps the original tooltip textcolor?
I have tried
@helpButton->setStyleSheet("QToolButton{ color: white;}");@
and
@helpButton->setStyleSheet("color: white; QToolTip{ color: black;}");@
And other variations, but without the desired effect. -