Results 1 to 2 of 2

Thread: QLabel link color

  1. #1
    Join Date
    Jan 2006
    Posts
    115
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QLabel link color

    Hallo

    Iám using Qt-4.2.2 on Windows XP Proffesional
    I had a problem to make change the link color on QLabel.
    According the docs you can change the link color with inline style but that doesn't work on Windows XP Proffesional.
    I didn't try it on my Linux system fc7.
    I have found a solution for this problem on Windows XP Proffesional.
    This is my solution.
    QLabel("<b><a style=\"font-size:10pt; color:white;\"href>Search</a></b>");
    If anybody has the same problem with Windows XP Proffesional this can be the solution.

  2. #2
    Join Date
    Jan 2007
    Posts
    177
    Thanks
    8
    Thanked 10 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLabel link color


Similar Threads

  1. Html link color
    By sreedhar in forum Qt Programming
    Replies: 9
    Last Post: 5th September 2008, 14:36
  2. QPushbutton + QLabel text color
    By Ashish in forum Qt Programming
    Replies: 5
    Last Post: 3rd February 2007, 08:13
  3. QLabel links?
    By gfunk in forum Qt Programming
    Replies: 3
    Last Post: 23rd December 2006, 00:42
  4. Setting text color on QLabel
    By Yorma in forum Newbie
    Replies: 11
    Last Post: 15th June 2006, 07:25
  5. QLabel background color
    By munna in forum Newbie
    Replies: 3
    Last Post: 1st May 2006, 15: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.