Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to receive files dragged into apps from other apps, such as from a browser?
Forum Updated to NodeBB v4.3 + New Features

How to receive files dragged into apps from other apps, such as from a browser?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 4 Posters 503 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.
  • S Offline
    S Offline
    senmx
    wrote on last edited by
    #1

    Now it's ok to drag it from Finder and desktop.

    Pl45m4P 1 Reply Last reply
    0
    • S senmx

      @Pl45m4 Thanks, I use qml's DropArea to handle the drop event, but I cannot receive files dragged in from other apps.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #4

      @senmx said in How to receive files dragged into apps from other apps, such as from a browser?:

      I use qml's DropArea

      Then your question belongs in https://forum.qt.io/category/12/qml-and-qt-quick

      J.HilkJ 1 Reply Last reply
      0
      • S senmx

        Now it's ok to drag it from Finder and desktop.

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by
        #2

        @senmx

        Have a look at QDropEvent

        https://doc.qt.io/qt-5/dnd.html


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        S 1 Reply Last reply
        2
        • Pl45m4P Pl45m4

          @senmx

          Have a look at QDropEvent

          https://doc.qt.io/qt-5/dnd.html

          S Offline
          S Offline
          senmx
          wrote on last edited by
          #3

          @Pl45m4 Thanks, I use qml's DropArea to handle the drop event, but I cannot receive files dragged in from other apps.

          JonBJ 1 Reply Last reply
          0
          • S senmx

            @Pl45m4 Thanks, I use qml's DropArea to handle the drop event, but I cannot receive files dragged in from other apps.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #4

            @senmx said in How to receive files dragged into apps from other apps, such as from a browser?:

            I use qml's DropArea

            Then your question belongs in https://forum.qt.io/category/12/qml-and-qt-quick

            J.HilkJ 1 Reply Last reply
            0
            • JonBJ JonB

              @senmx said in How to receive files dragged into apps from other apps, such as from a browser?:

              I use qml's DropArea

              Then your question belongs in https://forum.qt.io/category/12/qml-and-qt-quick

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #5

              @JonB said in How to receive files dragged into apps from other apps, such as from a browser?:

              Then your question belongs in https://forum.qt.io/category/12/qml-and-qt-quick

              I agree,

              @senmx take a look at this example from the documentation:
              https://doc.qt.io/qt-5/qtquick-externaldraganddrop-example.html


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              4
              • S Offline
                S Offline
                senmx
                wrote on last edited by senmx
                #6

                @J-Hilk @JonB
                Thanks.Found that the drag from the browser is a link.

                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