Results 1 to 4 of 4

Thread: Where to start on a graphical "tooltip"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Posts
    34
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Where to start on a graphical "tooltip"

    Quote Originally Posted by SixDegrees View Post
    QGraphicsView might be a bit heavyweight for something like this. You're able to display an image in a QLabel; I'd consider that approach first.
    But I'm displaying a QGraphicsItem. I will also want to update the graphics if this tool stays up to show the updated data.

    And as for singleton, I came to the same conclusion. I would only allow one tooltip at a time and it should rather be updated with the current item's graphics.

  2. #2
    Join Date
    Jan 2009
    Posts
    34
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Where to start on a graphical "tooltip"

    I went for the subclassing of QGraphicsView and it works like a charm. I made a singleton of it so only one would be visible and would check the placement when a new request to show the tooltip was made. I could then reuse the tooltip (for the same tool or if they would overlap) and would make a new when necessary.

Similar Threads

  1. Phonon slow "start"
    By Talei in forum Newbie
    Replies: 0
    Last Post: 17th August 2010, 00:33
  2. qt preview "tooltip"
    By gycdavsys in forum Newbie
    Replies: 1
    Last Post: 1st February 2010, 10:56
  3. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  4. Replies: 2
    Last Post: 20th November 2007, 20:00
  5. Can I edit a two - rows "start" menu like XP ?
    By bigbigmoon in forum Newbie
    Replies: 2
    Last Post: 11th September 2006, 01:43

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.