Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

Qt 3 Support Members for QComboBox

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

Public Functions

Signals


Member Function Documentation

QComboBox::QComboBox ( QWidget * parent, const char * name )

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

QComboBox::QComboBox ( bool rw, QWidget * parent, const char * name = 0 )

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

void QComboBox::changeItem ( const QString & text, int index )

Use setItemText() instead.

void QComboBox::changeItem ( const QPixmap & pixmap, int index )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use setItemIcon() instead, for example, setItemIcon(index, QIcon(pixmap)).

void QComboBox::changeItem ( const QPixmap & pixmap, const QString & text, int index )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use setItem() instead, for example, setItem(index, QIcon(pixmap),text).

void QComboBox::clearEdit ()

Use clearEditText() instead.

void QComboBox::clearValidator ()

Use setValidator(0) instead.

int QComboBox::currentItem () const

bool QComboBox::editable () const

Use isEditable() instead.

void QComboBox::insertItem ( const QString & text, int index = -1 )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

void QComboBox::insertItem ( const QPixmap & pixmap, int index = -1 )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use an insertItem() function that takes a QIcon instead, for example, insertItem(index, QIcon(pixmap)).

void QComboBox::insertItem ( const QPixmap & pixmap, const QString & text, int index = -1 )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use an insertItem() function that takes a QIcon instead, for example, insertItem(index, QIcon(pixmap), text).

void QComboBox::insertStringList ( const QStringList & list, int index = -1 )

Use insertItems() instead.

InsertPolicy QComboBox::insertionPolicy () const

Use QComboBox::insertPolicy instead.

QPixmap QComboBox::pixmap ( int index ) const

Use itemIcon() instead.

void QComboBox::popup ()

void QComboBox::setCurrentItem ( int index )

void QComboBox::setCurrentText ( const QString & text )

Use setItemText() instead.

See also currentIndex().

void QComboBox::setInsertionPolicy ( InsertPolicy policy )

Use QComboBox::insertPolicy instead.

QString QComboBox::text ( int index ) const

Use itemText() instead.

void QComboBox::textChanged ( const QString & )   [signal]


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2