Unsolved how take a directory to export file
-
i'm use plugin builder and Qt designer for creat a plugin on QGIS.
i wold like export a PDF file with results of processing, but I can not take the directory user to the code for export the PDF file.
how i do this?
-
@newton_787 From where should the folder come? Do you show a dialog, so user can select the folder to store the file?
-
@jsulm That! When the plugin is started, it asks the user where to save the processing results, the user selects the location and the plugin saves the products in this path
-
@newton_787 So, you are showing a dialog (https://doc.qt.io/qt-5/qfiledialog.html)?
-
@jsulm yep, i create this dialog in Qt Designer with QgsFileWidget, when i run the plugin on Qgis, his is showed and works fine, but i cant take the file path to insert on command line to export the results
-
@newton_787 You should be able to get the path from the dialog? What about https://qgis.org/api/classQgsFileWidget.html#a10bba9cb742f909cf621bffa67992fe9 ?