Results 1 to 2 of 2

Thread: Reg - Font setting QListBox

  1. #1
    Join Date
    Aug 2006
    Posts
    6
    Qt products
    Qt3
    Platforms
    Windows

    Default Reg - Font setting QListBox

    I listed online and offline members in QListBox.
    I would like to display online members as bold and offline members as normal.
    Before Insert into listbox I called the function setFont() based on the members status. But List box displays only bold or normal.

    Is it possible to display one line as bold and next one as normal in QListbox?

    Anybody knows reply me.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Reg - Font setting QListBox

    Just subclass QListBoxItem and make it draw your items using different fonts.

Similar Threads

  1. Qt renders wrong font
    By durbrak in forum Qt Programming
    Replies: 8
    Last Post: 2nd November 2006, 15:36
  2. couldn't open fontconfigs chosen font with Xft!!!
    By Kenneth Freidank in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2006, 04:14
  3. how to use user define font
    By numen in forum Qt Programming
    Replies: 1
    Last Post: 20th April 2006, 11:25
  4. Why QStyle dosen't changes the standard font?
    By Dark_Tower in forum Newbie
    Replies: 8
    Last Post: 31st March 2006, 03:49
  5. Determine system font
    By niala in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2006, 23:45

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.