以下成員源於類 QComboBox are part of the Qt compatibility layer. We advise against using them in new code.
| typedef | Policy |
| QComboBox (QWidget * parent , const char * name ) | |
| QComboBox (bool rw , QWidget * parent , const char * name = 0) | |
| void | changeItem (const QString & text , int index ) |
| void | changeItem (const QPixmap & pixmap , int index ) |
| void | changeItem (const QPixmap & pixmap , const QString & text , int index ) |
| void | clearEdit () |
| void | clearValidator () |
| int | currentItem () const |
| bool | editable () const |
| void | insertItem (const QString & text , int index = -1) |
| void | insertItem (const QPixmap & pixmap , int index = -1) |
| void | insertItem (const QPixmap & pixmap , const QString & text , int index = -1) |
| void | insertStringList (const QStringList & list , int index = -1) |
| InsertPolicy | insertionPolicy () const |
| QPixmap | pixmap (int index ) const |
| void | popup () |
| void | setCurrentItem (int index ) |
| void | setCurrentText (const QString & text ) |
| void | setInsertionPolicy (InsertPolicy policy ) |
| QString | text (int index ) const |
| void | textChanged (const QString & text ) |
使用 QComboBox::InsertPolicy 代替。
Use one of the constructors that doesn't take the name argument and then use setObjectName () 代替。
Use one of the constructors that doesn't take the name argument and then use setObjectName () 代替。
使用 setItemText () 代替。
使用 setItemIcon () instead, for example, setItemIcon (index, QIcon (pixmap)).
Use setItem() instead, for example, setItem(index, QIcon (pixmap),text).
使用 clearEditText () 代替。
使用 setValidator (0) instead.
使用 currentIndex () 代替。
另請參閱 setCurrentItem ().
使用 isEditable () 代替。
另請參閱 setEditable ().
Use an insertItem () 函數接受 QIcon instead, for example, insertItem (index, QIcon (pixmap)).
Use an insertItem () 函數接受 QIcon instead, for example, insertItem (index, QIcon (pixmap), text).
另請參閱 insertItems ().
使用 insertItems () 代替。
使用 QComboBox::insertPolicy 代替。
另請參閱 setInsertionPolicy ().
使用 itemIcon () 代替。
使用 showPopup () 代替。
使用 setCurrentIndex (int) instead.
另請參閱 currentItem ().
使用 setItemText () 代替。
另請參閱 currentText () 和 currentIndex ().
使用 QComboBox::insertPolicy 代替。
另請參閱 insertionPolicy ().
使用 itemText () 代替。
[signal]
void
QComboBox::
textChanged
(const
QString
&
text
)
使用 editTextChanged (const QString &text) signal instead.