Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

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 Types

typedef Policy

Public Functions

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
  • 60 public functions inherited from QWidget
  • 8 public functions inherited from QObject
  • 8 public functions inherited from QPaintDevice

Signals

void textChanged ( const QString & text )

Member Type Documentation

typedef QComboBox::Policy

Use QComboBox::InsertPolicy instead.

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 )

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

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

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

Use currentIndex() instead.

See also setCurrentItem().

bool QComboBox::editable () const

Use isEditable() instead.

See also setEditable().

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

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

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 )

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

See also insertItems().

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

Use insertItems() instead.

InsertPolicy QComboBox::insertionPolicy () const

Use QComboBox::insertPolicy instead.

See also setInsertionPolicy().

QPixmap QComboBox::pixmap ( int index ) const

Use itemIcon() instead.

void QComboBox::popup ()

Use showPopup() instead.

void QComboBox::setCurrentItem ( int index )

Use setCurrentIndex(int) instead.

See also currentItem().

void QComboBox::setCurrentText ( const QString & text )

Use setItemText() instead.

See also currentText() and currentIndex().

void QComboBox::setInsertionPolicy ( InsertPolicy policy )

Use QComboBox::insertPolicy instead.

See also insertionPolicy().

QString QComboBox::text ( int index ) const

Use itemText() instead.

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

Use the editTextChanged(const QString &text) signal instead.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.8
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web