How to select file while Browse in findFiles example without find file button?
-
In the findFiles demo of the QT while browsing we can only select the folders then we have to click find to see files.
I want to directly select the files and get its path in the combobox without and find buttons.Can anyone help me?
-
Well I have got a solution
In place of QFileDialog::getExistingDirectory
if you use QFileDialog::getOpenFileName, you can browse files and add them.
But can we specify which kind of file we can allow? like .txt or .odt only ...
-
Do you know about Qt's awesome "API documentation":https://qt-project.org/doc/qt-4.8/qfiledialog.html#getOpenFileName ?
-
[quote author="sabby" date="1356953150"]
if you use QFileDialog::getOpenFileName, you can browse files and add them.[/quote]That's Right...!!! QFileDialog::getOpenFileName () can be used to return the Existing Files selected by the user...
Thanks & Regards...