Results 1 to 4 of 4

Thread: Custom tooltips (QTJambi)

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Custom tooltips (QTJambi)

    Hi guys, I'm in the middle of programming a project for school based on the world of warcraft talent calculator. I'm having a problem with tooltips though. I can't seem to get tooltips styles to work at all. I can set the text properly, but actually styling them does not work. What I want is a black window much like the ones that show up when you h over over a talent (demo: https://www.worldofwarcraft.com/info...r/talents.html)


    The way things work now: Each talent is a QGraphicsItem, each tree is a QGraphicsScene inside a QFrame. The whole thing is wrapped in a QTalentWidget. I've experimented with having the hover event draw a custom window for the talent, which I'ved styled successfully, but the window doesn't extend the Scene, but tooltips do.

    So is there a way to style tooltips that I am unaware of? Or is there a way to make this custom window I have being drawn have the ability to display over top of everything? I'm using QT Jambi with eclipse. If its worth anything, I have the same problem witht he QT stylesheet demo, can't change the tooltip properties.

    Using the JAMBI demo launcher, the style DOES NOT change when I edit the stylesheet. Using the C++ demo launcher, it DOES change. Does jambi not have the ability to style tooltips?
    Last edited by Affinity; 10th March 2008 at 13:27.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom tooltips (QTJambi)

    1. The link you provided is invalid.
    2. Which version of Jambi are you using?

  3. #3
    Join Date
    Jan 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Custom tooltips (QTJambi)

    Sorry, fixed the link. I'm using jambi 4.3.3. Again, even in the demo for stylsheets, the tooltip style doesn't change.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom tooltips (QTJambi)

    Does styling regular widgets work?

    At worst you'll have to use QToolTip together with intercepting appropriate events and show a custom widget as a tooltip. The docs of the aforementioned class should give you some hints.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.