Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.3rdparty.kdelibs.phonon.objectdescriptionmodel.h

//! [0]

     * QComboBox *cb = new QComboBox(parentWidget);
     * ObjectDescriptionModel *model = new ObjectDescriptionModel(cb);
     * model->setModelData(BackendCapabilities::availableAudioOutputDevices());
     * cb->setModel(model);
     * cb->setCurrentIndex(0); // select first entry
     * //! [0]


//! [1]

     * int cbIndex = cb->currentIndex();
     * AudioOutputDevice selectedDevice = model->modelData(cbIndex);
     * //! [1]



Generated by  Doxygen 1.6.0   Back to index