Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Transparent Tooltips
Forum Updated to NodeBB v4.3 + New Features

Transparent Tooltips

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Meee32
    wrote on last edited by
    #1

    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)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      msue
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved