#include <treeComboBox.h>
|
typedef QComboBox | Superclass |
|
|
void | popupShow () |
|
void | popupHide () |
|
|
| TreeComboBox (QWidget *parent=0) |
|
int | visibleModelColumn () const |
|
void | setVisibleModelColumn (int index) |
|
virtual bool | eventFilter (QObject *object, QEvent *event) |
|
virtual void | showPopup () |
|
virtual void | hidePopup () |
|
QTreeView * | treeView () const |
|
|
virtual void | paintEvent (QPaintEvent *) |
|
Description: ComboBox that displays the items as a tree view. See below for a use case: TreeComboBox 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
◆ treeView()
QTreeView * TreeComboBox::treeView |
( |
| ) |
const |
TreeComboBox uses a QTreeView for its model view. treeView() is a utility function that cast QComboBox::view() into a QTreeView.
- See also
- view()
◆ visibleModelColumn
int TreeComboBox::visibleModelColumn |
|
readwrite |
Column index visible in the view. If
- See also
- visibleModelColumn is -1 (default) then all columns are visible.
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/treeComboBox.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/treeComboBox.cpp