Qx v0.7
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::TreeInputDialog Class Reference

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)
 

Detailed Description

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.

Dialog Buttons:
See also
StandardItemModel.
Todo
Expand the modes, options, and use cases of this dialog.

Constructor & Destructor Documentation

◆ TreeInputDialog()

Qx::TreeInputDialog::TreeInputDialog ( QWidget * parent = nullptr)
explicit

Constructs a tree input dialog with no model. parent is passed to the QDialog constructor.

Member Function Documentation

◆ selectAllClicked

void Qx::TreeInputDialog::selectAllClicked ( )
signal

This signal is emitted whenever the dialog's Select All button is clicked.

◆ selectNoneClicked

void Qx::TreeInputDialog::selectNoneClicked ( )
signal

This signal is emitted whenever the dialog's Select None button is clicked.

◆ setModel()

void Qx::TreeInputDialog::setModel ( QAbstractItemModel * model)

Sets the model of the dialog's tree view to model.


The documentation for this class was generated from the following files: