Unsolved Select file
-
Hi Folks,
I would like to provide a dialog window for the user to select files (once at a time) form my application, like "Open" or "New" menu in case of desktop applciations.
How should I do that?Regards,
Norbert -
It's all in the documentation: http://doc.qt.io/qt-5/qfiledialog.html
-
Hi,
thanks a lot. I tried it out and as I saw, there is a bit problem about the scaling: the user cannot see the bottom side of the window, because its too large. Is it possible to scale the dialog box?
Regards,
Norbert -
@moravas If you want to open the file is only one file, use this function QFileDialog ::getOpenFileName();
If you want to open more than one file using this function QFileDialog ::getOpenFileNames(); -
@moravas QFileDialog is just a subclass of QDialog which is a subclass of QWdiget , you can instanciate it and use its methods to change its properties (its size for example) like any other QWidget.