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. Drag qml element outside the application window
Qt 6.11 is out! See what's new in the release blog

Drag qml element outside the application window

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 5 Posters 4.4k Views 3 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.
  • M Offline
    M Offline
    maksim1979
    wrote on last edited by
    #1

    Hello guys

    I would like to ask for advice. I'm developing a multi tab application and the user should be able to drag tab (from QML point of view, tab is a mix of Rectangles/Images/etc elements) outside the main application window, drop it and as a result a new window should be opened (similar to Chrome/Sublime text/etc) . Maybe someone can recommend how it's possible to implement such functionality in QML?
    Thanks a lot.

    1 Reply Last reply
    1
    • W Offline
      W Offline
      webyte
      wrote on last edited by
      #2

      Did anyone determine a solution for this? I'm also looking for this. Thanks.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maksim1979
        wrote on last edited by
        #3

        Ladies & Gentlemen, maybe someone knows a way how to drag a QML object (or I can create a new type based on QQuickItem ) outside a window? By default such objects are just disappeared when you move it outside. Any ideas would be really appreciated. Thanks

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jens
          wrote on last edited by
          #4

          Did you already check out the improved Drag and Drop functionality in Qt 5.2 ?

          http://qt-project.org/doc/qt-5/qml-qtquick-drag.html

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maksim1979
            wrote on last edited by
            #5

            Yep, I've used it

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Kniebou
              wrote on last edited by
              #6

              Hi,
              Has anyone find a way to achieve this ?
              I'd like to drag an Item outside of my application window, and perform an action on mouse release (in my case, if you release on file system, it would create a file at this location).
              Thanks !

              1 Reply Last reply
              0
              • p3c0P Offline
                p3c0P Offline
                p3c0
                Moderators
                wrote on last edited by
                #7

                Hi,

                External drag-drop still doesn't work atleast on Ubuntu 14.04. See QTBUG-41133.

                157

                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