Results 1 to 9 of 9

Thread: Disable Single Checkbox in QTreeWidgetItem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Disable Single Checkbox in QTreeWidgetItem


  2. #2
    Join Date
    May 2011
    Posts
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Disable Single Checkbox in QTreeWidgetItem

    Quote Originally Posted by MarekR22 View Post
    If I understood the OP correctly, deepal_de only wants to disable the checkbox, not the whole item row.

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

    deepal_de (25th May 2011)

  4. #3
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Thanks
    39
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Disable Single Checkbox in QTreeWidgetItem

    Yes thats correct

  5. #4
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Disable Single Checkbox in QTreeWidgetItem

    Ok I should also give this link: QAbstractItemModel::flags. Check QStandardItem::setFlags if you use standard model (QStandardItemModel).
    Just in case take a look also here:
    QAbstractItemModel::data Qt::ItemDataRole-enum see Qt::CheckStateRole
    Last edited by MarekR22; 25th May 2011 at 09:33.

  6. The following user says thank you to MarekR22 for this useful post:

    deepal_de (26th May 2011)

Similar Threads

  1. checkbox
    By fluefiske in forum Newbie
    Replies: 3
    Last Post: 5th October 2010, 22:41
  2. Replies: 5
    Last Post: 23rd September 2010, 13:58
  3. QTreeWidgetItem and checkbox detection
    By merlvingian in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2008, 05:16
  4. QTreeWidget Single Column Sort Disable
    By craigjameshamilton in forum Newbie
    Replies: 1
    Last Post: 21st April 2008, 08:08
  5. checkbox
    By nErnie in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2006, 21:59

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.