Hi all,
I'm still learning Qt, but I've run into a bit of a problem. Currently, my console application reads a list of file names from the user via stdin. These filenames are then stored in a vector that is passed back to the invoking class. It works perfectly fine in its console form right now, but what I'd like to do is read in the filenames from the user via a GUI window that pops up when the old file selection prompt would come up on stdout so that the user can browse local files and select the file(s) that they want processed rather than typing them in. I'm confused right now as to how I'd go about doing this using Qt widgets. I'm developing on Ubuntu, but I have test environments for both Ubuntu and Windows 10. Ubuntu is my target platform, though, and I'm using Qt 5.
How can I invoke a GUI file-selection window and store the captured results into an std::vector? Again, I'm not actually opening the files yet as that is done a little later on in the flow of the application. I really only need for the user to be able to select files and then have the names of those files stored into an std::vector.
Any tips or pointers are more than appreciated! Thanks everyone.
Bookmarks