Results 1 to 3 of 3

Thread: how to set the font for QString?

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default how to set the font for QString?

    hi,

    working on Qt4.3 , i want to change the font of a QString and that formatted string i want to use in QTreewidget.
    Always Believe in Urself
    Merry

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to set the font for QString?

    A QString only holds the text, no formating informations. See custom item delegates.

  3. #3
    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: how to set the font for QString?

    Also look at the stylesheet support in Qt.

Similar Threads

  1. Font Height and width based on font size
    By Ghufran in forum Qt Programming
    Replies: 1
    Last Post: 31st July 2010, 08:02
  2. How to apply font to QString
    By coolkaps in forum Newbie
    Replies: 1
    Last Post: 9th May 2010, 23:27
  3. How to set font of QString??
    By sudhansu in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2010, 14:32
  4. font incorrectly show - font break.
    By sgh in forum Qt Programming
    Replies: 9
    Last Post: 30th May 2008, 02:35
  5. Replies: 4
    Last Post: 31st January 2008, 20:44

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.