Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. how take a directory to export file

how take a directory to export file

Scheduled Pinned Locked Moved Unsolved Qt for Python
6 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    newton_787
    wrote on last edited by
    #1

    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?

    alt text

    jsulmJ 1 Reply Last reply
    0
    • N newton_787

      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?

      alt text

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @newton_787 From where should the folder come? Do you show a dialog, so user can select the folder to store the file?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply
      1
      • jsulmJ jsulm

        @newton_787 From where should the folder come? Do you show a dialog, so user can select the folder to store the file?

        N Offline
        N Offline
        newton_787
        wrote on last edited by
        #3

        @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

        jsulmJ 1 Reply Last reply
        0
        • N newton_787

          @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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @newton_787 So, you are showing a dialog (https://doc.qt.io/qt-5/qfiledialog.html)?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply
          0
          • jsulmJ jsulm

            @newton_787 So, you are showing a dialog (https://doc.qt.io/qt-5/qfiledialog.html)?

            N Offline
            N Offline
            newton_787
            wrote on last edited by
            #5

            @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

            cb159cbb-46c5-4669-9bba-9ec41eef1dc6-image.png

            jsulmJ 1 Reply Last reply
            0
            • N newton_787

              @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

              cb159cbb-46c5-4669-9bba-9ec41eef1dc6-image.png

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @newton_787 You should be able to get the path from the dialog? What about https://qgis.org/api/classQgsFileWidget.html#a10bba9cb742f909cf621bffa67992fe9 ?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved