Transparent Tooltips



  • Hey guys and gals, (they do exist I'm sure XD ), need some help with this one. I want all ToolTips to be transparent and then for me to be able to add an image instead, making it so that I could have any shape I like by way of transparent png backgrounds.

    Is this possible?

    I tried this...

    @centralWidget->setStyleSheet("QToolTip { color: #ffffff; background-color: transparent; }");@

    But it then just fills the box with the color of it's parent. I want it to not have a box at all. I would like it so I could have floating text there if I wished, is that possible?

    I have looked around and found this...

    http://www.qtcentre.org/archive/index.php/t-8341.html

    But as you can see this was from 2007, I wonder if there is a more up to date method to do this?

    Thanks in advance

    EDIT: Just a thought, but perhaps it would be nice if Qt came with some stock shapes that you could pick out with code. QToolTip::SpeechBubble1 or something like that. If you do it can you do it quick so that I can use it? XD (Joking of course)



  • You can probably find something here: http://qt-project.org/doc/qt-5/stylesheet-reference.html#list-of-properties
    See e.g. at QToolTip and background-image


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.