Maybe it will be easier if you use QFileDialog::getOpenFileNames()? The user will have a chance to choose images he wants.
Maybe it will be easier if you use QFileDialog::getOpenFileNames()? The user will have a chance to choose images he wants.
I guess I have one more question (never enough).
In the above code (2 postings back), if I wanted to replace the filenames in "list" with absolute paths + filename, how would I do that? Is there a convenient filter for that?
In other words, instead of getting "filename1.jpg" I want to get "c:/myfolder/filename1.jpg".
Thanks.
Qt Code:
QStringList list; list << fi.absoluteFilePath(); }To copy to clipboard, switch view to plain text mode
ht1 (29th November 2007)
Amazing!
Thanks a lot, Jacek![]()
Hello i have a problem with that source.
i was develop a simple program that use it my method is this
Qt Code:
void mainGUI::fuentes() { QStringList files; comboBox->addItems(files); }To copy to clipboard, switch view to plain text mode
This method work online when i run the program in KDevelop or by Konsole but when i go to run by Konqueror or other windows manager it doesnt work the program doesnt show the filename in the combobox.
Thanks
Take a look at http://wiki.qtcentre.org/index.php?t...king_directory.
J-P Nurmi
Bookmarks