Qx v0.7
Qt Extensions Library
|
The TreeInputDialog class provides a simple tree-based dialog from which the user can select one or more items. More...
#include <qx/widgets/qx-treeinputdialog.h>
Signals | |
void | selectAllClicked () |
void | selectNoneClicked () |
Public Member Functions | |
TreeInputDialog (QWidget *parent=nullptr) | |
void | setModel (QAbstractItemModel *model) |
The tree input dialog doesn't handle any selection logic itself, but instead provides a simple interface to facilitate user input.
At its core, the dialog consists of a QTreeView and four buttons:
A model, which generally should contain checkable items, can be set to the dialog's tree view for displaying choices to the user, as well as getting their selections. The buttons in the dialog either emit signals or set the dialog's result code, relying on the rest of the program to transform this information into meaningful action.
|
explicit |
Constructs a tree input dialog with no model. parent
is passed to the QDialog constructor.
|
signal |
This signal is emitted whenever the dialog's Select All button is clicked.
|
signal |
This signal is emitted whenever the dialog's Select None button is clicked.
void Qx::TreeInputDialog::setModel | ( | QAbstractItemModel * | model | ) |
Sets the model of the dialog's tree view to model
.