Well, hi all.
I've got a question. I have a QTableWidget
where I need put images from directory and retrieve name of image that was in selected cell. How can it automatically generate number of rows and columns depending of number of files in directory? I can add image to table by hand but it's not that i want to do. I suppose it's must be something with
QDir dir("images/");
QFileInfoList dirContent = dir.entryInfoList(QStringList()<< "*.png", QDir::Files |
QDir::NoDotAndDotDot);
But still can't figure how can I do this.
There are two approaches.
Non-recursive
main.cpp
main.pro
Build and Run
Recursive
main.cpp
main.pro
Build and Run