Results 1 to 3 of 3

Thread: QTreeView CheckBox

  1. #1
    Join Date
    Mar 2014
    Posts
    8
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default QTreeView CheckBox

    I have created a tree with QTreeView + QStandardItemModel with checkboxes. I need to perform separate action on checkbox click and item click.
    I am not able to identify difference between checkbox click and item click. Please suggest how to do that?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QTreeView CheckBox

    The click on the checkbox will result in a model update of the CheckStaterole and a click elsewhere will not. What are you trying to achieve?

  3. #3
    Join Date
    Mar 2014
    Posts
    8
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: QTreeView CheckBox

    I am new to QT. Can you explain where and how to handle it?

Similar Threads

  1. Checkbox in QTreeView
    By mugi in forum Newbie
    Replies: 4
    Last Post: 9th July 2011, 00:13
  2. Replies: 0
    Last Post: 5th July 2010, 09:05
  3. QTreeView, checkbox problem
    By jwieland in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2009, 14:09
  4. How to set StyleSheet for checkbox in QTreeView;
    By visor_ua in forum Qt Programming
    Replies: 3
    Last Post: 7th April 2009, 11:46
  5. QTreeView: How to center a checkbox in a cell
    By chezifresh in forum Qt Programming
    Replies: 3
    Last Post: 19th December 2008, 12:11

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.