Provides a QComboBox able to display a tree model item.
More...
#include <qttools/gui/tree_combo_box.h>
Provides a QComboBox able to display a tree model item.
- Examples:
- qttools/tree_combo_box/main.cpp.
qtgui::TreeComboBox::TreeComboBox |
( |
QWidget * |
parent = NULL | ) |
|
QModelIndex qtgui::TreeComboBox::currentModelIndex |
( |
| ) |
const |
void qtgui::TreeComboBox::setCurrentModelIndex |
( |
const QModelIndex & |
modelIndex | ) |
|
void qtgui::TreeComboBox::showPopup |
( |
| ) |
|
QModelIndex qtgui::TreeComboBox::treeFindData |
( |
const QVariant & |
data, |
|
|
int |
role = Qt::UserRole , |
|
|
Qt::MatchFlags |
flags = Qt::MatchRecursive |
|
) |
| const |
Similar to QComboBox::findData() but searches recursively in the tree model (instead of just root items)
QTreeView * qtgui::TreeComboBox::treeView |
( |
| ) |
const |
The QTreeView used to display the attached tree model.
The documentation for this class was generated from the following files: