Results 1 to 2 of 2

Thread: QAbstractItemModel bold items

  1. #1
    Join Date
    May 2007
    Posts
    20
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QAbstractItemModel bold items

    Hello,

    I am running some tests using QAbstractItemModel. In my data model, I have 2 strings that I would like to concatenate in my tree view. But, I would like that the second string is showing up in bold.

    Example:

    [+] This is the root node (with some other information here when available)
    This is a child node

    Should I implement a delegate in order to do this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QAbstractItemModel bold items

    Yes, that's probably the best if not the only way to go.

Similar Threads

  1. Light items for the graphicsView
    By maverick_pol in forum Qt Programming
    Replies: 12
    Last Post: 1st November 2007, 18:51
  2. Selective highlighting of Items
    By Kapil in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2006, 12:20

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.