QComboBox: images until text



  • hi. i am developing an application for Symbian and i would like to show a QComboBox with images.

    @
    comboWort = new QComboBox();
    comboWort->addItem(QIcon(QString(":/articoli/non-definito.png")), QString(""));
    comboWort->addItem(QIcon(QString(":/articoli/maschile.png")), QString(""));
    comboWort->addItem(QIcon(QString(":/articoli/femminile.png")), QString(""));
    comboWort->addItem(QIcon(QString(":/articoli/neutro.png")), QString(""));
    @

    this code does not function on simulator. non-definito.png is a png images, whose size is 22x32 pixel.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.