Results 1 to 3 of 3

Thread: ToolTip with hyperlink

  1. #1
    Join Date
    Aug 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default ToolTip with hyperlink

    Hi all!

    Task is - create a tooltip with hyperlink

    I tryed to use QToolTip and QWhatsThis

    Unfortunately I didn't find a way to force it work.

    Is this real create such thing without making Tooltip from QLabel?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: ToolTip with hyperlink

    Doesn't setting the tool tip text with HTML do that?
    Qt Code:
    1. Tooltip->setText("stuff <a href='http://www.qtcentre.org'>Qt Centre</a> stuff");
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Aug 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: ToolTip with hyperlink

    Quote Originally Posted by ChrisW67 View Post
    Doesn't setting the tool tip text with HTML do that?
    Qt Code:
    1. Tooltip->setText("stuff <a href='http://www.qtcentre.org'>Qt Centre</a> stuff");
    To copy to clipboard, switch view to plain text mode 
    It looks like hyperlink, but, unfortunatelly, they are not clickable

Similar Threads

  1. hyperlink in QML GraphicsWebview
    By Rakeshkasinathan in forum Qt Programming
    Replies: 9
    Last Post: 21st February 2015, 12:26
  2. Delegate hyperlink
    By migel in forum Newbie
    Replies: 1
    Last Post: 7th September 2011, 23:53
  3. Looking for a hyperlink control
    By scarleton in forum Qt Programming
    Replies: 1
    Last Post: 2nd July 2010, 04:46
  4. QTextEdit for Hyperlink
    By blueteeth in forum Qt Programming
    Replies: 4
    Last Post: 1st February 2008, 09:25
  5. How to create a HyperLink in Qt 4.1.5?
    By vishal.chauhan in forum Qt Programming
    Replies: 7
    Last Post: 18th May 2007, 06:36

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.