![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Widgets/ctkTreeComboBox.h>


Public Types | |
| typedef QComboBox | Superclass |
Signals | |
| void | popupHide () |
| void | popupShow () |
Public Member Functions | |
| ctkTreeComboBox (QWidget *parent=0) | |
| virtual bool | eventFilter (QObject *object, QEvent *event) |
| virtual void | hidePopup () |
| void | setVisibleModelColumn (int index) |
| virtual void | showPopup () |
| QTreeView * | treeView () const |
| int | visibleModelColumn () const |
| virtual | ~ctkTreeComboBox () |
Protected Slots | |
| void | resizePopup () |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) |
Protected Attributes | |
| QScopedPointer< ctkTreeComboBoxPrivate > | d_ptr |
Properties | |
| int | visibleModelColumn |
Description: ComboBox that displays the items as a tree view. See below for a use case: ctkTreeComboBox combo; QStandardItemModel model; model.appendRow(new QStandardItem("Test1")); model.item(0)->appendRow(new QStandardItem("Test1.1")); model.item(0)->appendRow(new QStandardItem("Test1.2")); model.item(0)->appendRow(new QStandardItem("Test1.3")); model.appendRow(new QStandardItem("Test2")); model.appendRow(new QStandardItem("Test3")); combo.setModel(&model); combo.show(); TODO fix size of the view
Definition at line 50 of file ctkTreeComboBox.h.
| typedef QComboBox ctkTreeComboBox::Superclass |
Definition at line 57 of file ctkTreeComboBox.h.
|
explicit |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
signal |
|
signal |
|
protectedslot |
| void ctkTreeComboBox::setVisibleModelColumn | ( | int | index | ) |
|
virtual |
| QTreeView* ctkTreeComboBox::treeView | ( | ) | const |
ctkTreeComboBox uses a QTreeView for its model view. treeView() is a utility function that cast QComboBox::view() into a QTreeView.
| int ctkTreeComboBox::visibleModelColumn | ( | ) | const |
|
protected |
Definition at line 84 of file ctkTreeComboBox.h.
|
readwrite |
Column index visible in the view. If
Definition at line 1 of file ctkTreeComboBox.h.