Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Hierarchical Tree with Selectionable Subtree/Elements e.g. via checkboxes



  • I am looking to implement a hierarchical tree where individual elements or entire subtrees could be selected. This is typically shown as checkboxes and use in software installers to select components to install, or backup solutions to select which folders to sync, e.g:

    0_1562660353853_mstsc_JHffWrr1YH.png

    Is there an easy way to achieve that using Qt widgets?

    Thanks

    Pascal



  • QTreeWidget if the need is basic, QTreeView + a model (QStandardItemModel?) for more advanced uses


Log in to reply