Split each filename according to what criteria?
I think you and the OP are interpreting the word "split" differently. If he wants to display each file in the list, then it makes no sense at all to split the file names into smaller pieces.
I think he just doesn't understand how to retrieve the individual file names from the list.
foreach( fileName, dirList )
{
// "fileName" now contains the name of one of the files in the list
// Use QPixmap to read the image from the file
// Use QLabel::setPixmap() to display the pixmap on a QLabel (for example)
// or use QGraphicsPixmapItem to show it in a QGraphicsScene (for example)
}
QString fileName;
foreach( fileName, dirList )
{
// "fileName" now contains the name of one of the files in the list
// Use QPixmap to read the image from the file
// Use QLabel::setPixmap() to display the pixmap on a QLabel (for example)
// or use QGraphicsPixmapItem to show it in a QGraphicsScene (for example)
}
To copy to clipboard, switch view to plain text mode
Bookmarks