Results 1 to 3 of 3

Thread: QComboBox with multipe selection via tree

  1. #1
    Join Date
    Dec 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QComboBox with multipe selection via tree

    I recently wrote a a nice control that is an extension of QComboBox. The control displays items in a tree and allows you to easily select multiple items or groups of items. You can check/uncheck parents to select groups of children and the control can also run a QCompleter to quickly type and auto-complete items from the tree. The result is a lot like the standard control you see everywhere in Windows to select groups of features, e.g. in an installation wizard. There are two classes in here:
    1. StandardTreeComboBox, which lets you easily build a combo box with items using QStandardItemModel.
    2. TreeComboBox, which lets you use whatever QAbstractItemModel you want (such as a directory tree).

    Attached find the code plus a screen shot.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QComboBox with multipe selection via tree

    Thanks! This is exactly what I needed. I'm loving it.

  3. #3
    Join Date
    Feb 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: QComboBox with multipe selection via tree

    Great! It Work!!! In future his may be work as single tree combo also.

Similar Threads

  1. QComboBox drop-down closes immediately without changing the selection/index
    By kapoorsudhish in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 26th February 2010, 07:37
  2. develop a tree.
    By tkms in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2009, 05:18
  3. prevent selection in QComboBox.
    By hicpalm in forum Qt Programming
    Replies: 6
    Last Post: 21st May 2008, 16:06
  4. Tree selection - icon transparency (lack of)
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2008, 22:48
  5. Replies: 14
    Last Post: 9th November 2006, 09:35

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.