Results 1 to 2 of 2

Thread: Use of checked state within Tree Widget

  1. #1
    Join Date
    Sep 2014
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Use of checked state within Tree Widget

    Hi Guys,

    I'm trying to do a few things here.
    The widget is going to be used to see what files need to be updated.
    I am currently using a Tree Widget to do this.

    CPcYgme.png

    Is there a way of adding a check box next to the column header "software" to function as a "select all/unselect all"
    Is there a way of making these check boxes larger?

    Best Regards,
    David

  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: Use of checked state within Tree Widget

    Quote Originally Posted by DavidLinSuperstar View Post
    Is there a way of adding a check box next to the column header "software" to function as a "select all/unselect all"
    Yes. Subclass QHeaderView and implement the checkbox.

    Is there a way of making these check boxes larger?
    Yes, implement a custom item delegate that will draw them larger.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 2nd March 2012, 07:55
  2. tree widget item's widget don't respond to any event.
    By quantity in forum Qt Programming
    Replies: 0
    Last Post: 11th April 2011, 04:30
  3. tree widget like designer's widget tree
    By nroberts in forum Newbie
    Replies: 1
    Last Post: 20th November 2010, 00:06
  4. Replies: 3
    Last Post: 17th March 2010, 16:47
  5. [QT4] Saving a widget state
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2006, 14:31

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.