Results 1 to 5 of 5

Thread: Tooltip of widget not visible in QGraphicsProxyWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Tooltip of widget not visible in QGraphicsProxyWidget

    Life would be much easier if that tooltip had worked; but anyway... :-)

    Edit: I think proxy causes a palette related issue. Calling setPalette after tooltip's showText function solved the problem for now.

    Qt Code:
    1. QToolTip::showText(helpEvent->globalPos(), ttip);
    2. QToolTip::setPalette(QPalette(Qt::black));
    To copy to clipboard, switch view to plain text mode 
    Last edited by yagabey; 12th February 2016 at 23:13.

Similar Threads

  1. Replies: 1
    Last Post: 23rd March 2012, 13:39
  2. Creating a Tooltip-like widget for mouse-hover of QListView items
    By TropicalPenguin in forum Qt Programming
    Replies: 4
    Last Post: 26th November 2011, 05:14
  3. How can we set tooltip to a particular area of widget?
    By pratik041 in forum Qt Programming
    Replies: 5
    Last Post: 21st November 2011, 16:17
  4. Replies: 8
    Last Post: 9th July 2010, 00:37
  5. Tooltip-like widget
    By momesana in forum Qt Programming
    Replies: 5
    Last Post: 4th October 2007, 18:33

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.