Well, in C++ this would look something like this
// assuming "pixmaps" is a member of the class, like "imageFiles" seems to be
// type in C++ would be QVector<QPixmap>
pixmaps.resize(imageFiles.size());
for (int i = 0; i < pixmaps.count(); ++i) {
pixmaps
[i
] = QPixmap(DIRECTORY
+ '/' + imageFiles
[i
]);
}
// assuming "pixmaps" is a member of the class, like "imageFiles" seems to be
// type in C++ would be QVector<QPixmap>
pixmaps.resize(imageFiles.size());
for (int i = 0; i < pixmaps.count(); ++i) {
pixmaps[i] = QPixmap(DIRECTORY + '/' + imageFiles[i]);
}
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks