PDA

View Full Version : Stop QToolTip from inheriting parent's style sheet



i92guboj
2nd December 2013, 09:35
Hi.

I have some QLabel with a custom style sheet to show some very relevant info on them. The problem is that when I hover them, the tooltip appears with the parent style. This is not only undesired, but also breaks word wrapping on the tips, rendering them useless.

I thought: well, let's style them to "", but QToolTip doesn't seem to have a setStyleSheet() member so... is there any way to fix this, other than removing the style sheets from my QLabels?

Thanks for any response :)