Problem mit QList
Verfasst: 24. Februar 2007 15:00
Code: Alles auswählen
QList<QString[2]> _shots;
...
void QMEntryDialog::setScreenshots (QList<QString[2]> & shots) {
shotList->clear();
_shots = shots; // <-- Löst Fehler in Qt-Libs beim kompilieren aus
for (int i = 0; i < _shots.size(); i++) {
// fill the list
shotList->addItem(QFileInfo(QUrl(shots[i][0]).path()).fileName()); <-- geht auch ned :(
}
}Wie sollte ich denn auf eine solche QList zugreifen?
MfG