PDA

View Full Version : Styling QToolTip, removing corners, opacity not working.



Enygma
30th August 2007, 17:58
I have this:


QToolTip {
border: 2px solid green;
border-radius: 6px;
}

But I end up with some pretty disturbing corners with the background color where the border is rounded.

My question is: How can I get rid of them?

I tryed the opacity qss attirbute but it's not working, although in the documentation it says it works. Tried it with a simple example, no transparency there.

Bug? :confused:

jpn
31st August 2007, 14:46
The opacity attribute refers to window opacity (http://doc.trolltech.com/latest/qwidget.html#windowOpacity-prop), which is the opacity of the whole tooltip window. For rounded corners the window would need to be masked (http://doc.trolltech.com/latest/qwidget.html#setMask).