Results 1 to 2 of 2

Thread: Customizing the checkboxes of the items of a QTreeView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Oct 2011
    Posts
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Customizing the checkboxes of the items of a QTreeView

    I have found that the answer is this:

    Qt Code:
    1. ui.myTreeView->setStyleSheet(
    2. "QTreeView::indicator:unchecked {image: url(:/icons/eye_grey.png);}"
    3. "QTreeView::indicator:checked {image: url(:/icons/eye.png);}"
    4. );
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to Feoggou for this useful post:

    rexocool (13th January 2013)

Similar Threads

  1. Replies: 1
    Last Post: 6th May 2011, 13:17
  2. QTreeView and CheckBoxes
    By FreeG in forum Qt Programming
    Replies: 2
    Last Post: 9th December 2009, 09:36
  3. qtreeview + checkboxes
    By lamera in forum Newbie
    Replies: 9
    Last Post: 6th September 2008, 22:10
  4. Checkboxes in menu items
    By markcole in forum Qt Programming
    Replies: 2
    Last Post: 4th June 2007, 15:16
  5. QTreeView with checkboxes
    By shad in forum Qt Programming
    Replies: 1
    Last Post: 4th May 2006, 13:29

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.