Definition at line 62 of file qcombobox.h.
Public Types
|
| enum |
InsertPolicy
{
NoInsert,
InsertAtTop,
InsertAtCurrent,
InsertAtBottom,
InsertAfterCurrent,
InsertBeforeCurrent,
InsertAlphabetically
} |
| enum |
SizeAdjustPolicy
{
AdjustToContents,
AdjustToContentsOnFirstShow,
AdjustToMinimumContentsLength,
AdjustToMinimumContentsLengthWithIcon } |
Public Slots
|
| void |
clear
() |
| void |
clearEditText
() |
| void |
setEditText
(const QString
&text) |
| void |
setCurrentIndex
(int index) |
Signals
|
| void |
editTextChanged
(const QString
&) |
| void |
activated
(int index) |
| void |
activated
(const QString
&) |
| void |
highlighted
(int index) |
| void |
highlighted
(const QString
&) |
| void |
currentIndexChanged
(int index) |
| void |
currentIndexChanged
(const QString
&) |
Public Member Functions
|
| |
QComboBox
(QWidget
*parent=0) |
| |
~QComboBox
() |
| int |
maxVisibleItems
() const |
| void |
setMaxVisibleItems
(int maxItems) |
| int |
count
() const |
| void |
setMaxCount
(int max) |
| int |
maxCount
() const |
| bool |
autoCompletion
() const |
| void |
setAutoCompletion
(bool enable) |
| Qt::CaseSensitivity |
autoCompletionCaseSensitivity
() const |
| void |
setAutoCompletionCaseSensitivity
(Qt::CaseSensitivity
sensitivity) |
| bool |
duplicatesEnabled
() const |
| void |
setDuplicatesEnabled
(bool enable) |
| void |
setFrame
(bool) |
| bool |
hasFrame
() const |
| int |
findText
(const QString
&text, Qt::MatchFlags flags=static_cast< Qt::MatchFlags
>(Qt::MatchExactly|Qt::MatchCaseSensitive)) const |
| int |
findData
(const QVariant
&data, int role=Qt::UserRole, Qt::MatchFlags
flags=static_cast< Qt::MatchFlags
>(Qt::MatchExactly|Qt::MatchCaseSensitive)) const |
| InsertPolicy |
insertPolicy
() const |
| void |
setInsertPolicy
(InsertPolicy
policy) |
| SizeAdjustPolicy |
sizeAdjustPolicy
() const |
| void |
setSizeAdjustPolicy
(SizeAdjustPolicy
policy) |
| int |
minimumContentsLength
() const |
| void |
setMinimumContentsLength
(int characters) |
| QSize |
iconSize
() const |
| void |
setIconSize
(const QSize
&size) |
| bool |
isEditable
() const |
| void |
setEditable
(bool editable) |
| void |
setLineEdit
(QLineEdit
*edit) |
| QLineEdit * |
lineEdit
() const |
| void |
setValidator
(const QValidator
*v) |
| const QValidator * |
validator
() const |
| void |
setCompleter
(QCompleter
*c) |
| QCompleter * |
completer
() const |
| QAbstractItemDelegate
* |
itemDelegate
() const |
| void |
setItemDelegate
(QAbstractItemDelegate
*delegate) |
| QAbstractItemModel
* |
model
() const |
| void |
setModel
(QAbstractItemModel
*model) |
| QModelIndex |
rootModelIndex
() const |
| void |
setRootModelIndex
(const QModelIndex &index) |
| int |
modelColumn
() const |
| void |
setModelColumn
(int visibleColumn) |
| int |
currentIndex
() const |
| QString |
currentText
() const |
| QString |
itemText
(int index) const |
| QIcon |
itemIcon
(int index) const |
| QVariant |
itemData
(int index, int role=Qt::UserRole) const |
| void |
addItem
(const QString
&text, const QVariant &userData=QVariant()) |
| void |
addItem
(const QIcon &icon,
const QString
&text, const QVariant &userData=QVariant()) |
| void |
addItems
(const QStringList &texts) |
| void |
insertItem
(int index, const QString &text, const QVariant &userData=QVariant()) |
| void |
insertItem
(int index, const QIcon
&icon, const QString &text, const QVariant &userData=QVariant()) |
| void |
insertItems
(int index, const QStringList &texts) |
| void |
insertSeparator
(int index) |
| void |
removeItem
(int index) |
| void |
setItemText
(int index, const QString &text) |
| void |
setItemIcon
(int index, const QIcon
&icon) |
| void |
setItemData
(int index, const QVariant &value, int
role=Qt::UserRole) |
| QAbstractItemView
* |
view
() const |
| void |
setView
(QAbstractItemView
*itemView) |
| QSize |
sizeHint
() const |
| QSize |
minimumSizeHint
() const |
| virtual
void |
showPopup
() |
| virtual
void |
hidePopup
() |
| bool |
event
(QEvent *event) |
Protected Member Functions
|
| void |
focusInEvent
(QFocusEvent
*e) |
| void |
focusOutEvent
(QFocusEvent
*e) |
| void |
changeEvent
(QEvent *e) |
| void |
resizeEvent
(QResizeEvent
*e) |
| void |
paintEvent
(QPaintEvent
*e) |
| void |
showEvent
(QShowEvent
*e) |
| void |
hideEvent
(QHideEvent
*e) |
| void |
mousePressEvent
(QMouseEvent
*e) |
| void |
mouseReleaseEvent
(QMouseEvent
*e) |
| void |
keyPressEvent
(QKeyEvent *e) |
| void |
keyReleaseEvent
(QKeyEvent *e) |
| void |
wheelEvent
(QWheelEvent
*e) |
| void |
contextMenuEvent
(QContextMenuEvent *e) |
| void |
inputMethodEvent
(QInputMethodEvent *) |
| QVariant |
inputMethodQuery
(Qt::InputMethodQuery)
const |
| void |
initStyleOption
(QStyleOptionComboBox
*option) const |
| |
QComboBox
(QComboBoxPrivate &, QWidget *) |
Properties
|
| bool |
editable |
| int |
count |
| QString |
currentText |
| int |
currentIndex |
| int |
maxVisibleItems |
| int |
maxCount |
| InsertPolicy |
insertPolicy |
| SizeAdjustPolicy |
sizeAdjustPolicy |
| int |
minimumContentsLength |
| QSize |
iconSize |
| bool |
autoCompletion |
| Qt::CaseSensitivity |
autoCompletionCaseSensitivity |
| bool |
duplicatesEnabled |
| bool |
frame |
| int |
modelColumn |