Results 1 to 7 of 7

Thread: QLabel with HTML-style formatting docs?

  1. #1
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default QLabel with HTML-style formatting docs?

    Hello,

    in the book
    C++ GUI Programming with QT3 chapter 1, there is an example where some
    HTML-style formatting is used on a QLabel.
    Qt Code:
    1. QLabel *label = new QLabel("<h2><i>Hello</i> "
    2. "<font color=red>Qt!</font></h2>", 0);
    To copy to clipboard, switch view to plain text mode 

    Can someone point me to any documentation where I can read more about it?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Netherlands
    Posts
    56
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QLabel with HTML-style formatting docs?

    found already a thread at Qt Centre.. maybe it's useful

    http://www.qtcentre.org/forum/showthread.php?t=195
    ..:: Still Standing Strong ::..

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QLabel with HTML-style formatting docs?

    Thanks Brainbone

    I found this also in QT3 documentation :
    http://doc.trolltech.com/3.3/qstylesheet.html#details
    Last edited by Everall; 7th February 2006 at 09:40.

  4. #4
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QLabel with HTML-style formatting docs?

    you can read any doc abour simple html and use it in QLabel

  5. #5
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QLabel with HTML-style formatting docs?

    Quote Originally Posted by zlatko
    you can read any doc abour simple html and use it in QLabel
    thanks,

    I think i already found enough toys to play with.

    Cheers

  6. #6
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLabel with HTML-style formatting docs?

    I really like http://computer.howstuffworks.com/pdf/web-page-tags.pdf it's a one page pdf covering the most usefull tags. I 've printed it and pinned it in my notifications board next to my office for a quick lookup.

  7. #7
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QLabel with HTML-style formatting docs?

    thanks yop,

    looks really cool.

    Everall

Similar Threads

  1. QLabel ScaledContents ignored by style sheet?
    By WinchellChung in forum Newbie
    Replies: 3
    Last Post: 27th February 2008, 15:50

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.