Results 1 to 10 of 10

Thread: QTreeWidgetItem and background color

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Poland
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTreeWidgetItem and background color

    How can i change the background color of a qtreewidgetitem?
    When item has a parent, and e.g 3 columns then
    Qt Code:
    1. QBrush b( Qt::red );
    2. item->setBackground( 0, b );
    3. item->setBackground( 1, b );
    4. item->setBackground( 2, b );
    To copy to clipboard, switch view to plain text mode 
    doesn't work because first column( 0 ) isn't a really first column, and i have this:
    Attached Images Attached Images

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.