Results 1 to 2 of 2

Thread: QTreeView

  1. #1
    Join Date
    May 2011
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QTreeView

    Hi, in my application I have a QTreeView with QCheckBox, but when I select a row the QCheckBox doesn't check, only when I click on QCheckBox. How can I solve this problem without create a delegate class?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTreeView

    You could connect to the view's clicked() signal and set the check role state yourself.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    marnando (13th March 2014)

Similar Threads

  1. Help ...QTreeView
    By Raymond in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2009, 10:18
  2. QTreeView
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 4th March 2009, 20:51
  3. QTreeView. Qt.4.4.1
    By janEUcitzen in forum Qt Programming
    Replies: 1
    Last Post: 15th November 2008, 09:53
  4. QTreeView
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 29th May 2007, 09:38
  5. QTreeView
    By npc in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2007, 08:53

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.