Results 1 to 2 of 2

Thread: QTreeWidget

  1. #1
    Join Date
    Feb 2010
    Posts
    52
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default QTreeWidget

    Is this a bug,
    I want a tree with top level items not selectable, but with selectable children.

    I insert a QTreeWidgetItem with flags set to Qt::NoItemFlags, because I do not want it to be selectable. I insert another item as a child with flags set to Qt::ItemIsEnabled | Qt::ItemIsSelectable, however this child is also not selectable.

    This results in the child not being selectable whilst I believe it should be.

    Thanks in advance,
    Chris.

  2. #2
    Join Date
    Jun 2010
    Location
    India
    Posts
    50
    Thanks
    1
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTreeWidget

    May be you have to set Qt::ItemIsEnabled instead Qt::NoItemFlags for your top Level QTreeWidgetItem.

Similar Threads

  1. Replies: 2
    Last Post: 17th March 2008, 12:53
  2. Replies: 1
    Last Post: 19th October 2007, 01:29
  3. QTreeWidget
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2007, 15:03
  4. QTreeWidget
    By merry in forum Qt Programming
    Replies: 4
    Last Post: 28th May 2007, 12:51
  5. QTreeWidget how to's
    By bruccutler in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2007, 16:23

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.