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 and Drop between two different QQuickWidgets
Forum Updated to NodeBB v4.3 + New Features

Drag and Drop between two different QQuickWidgets

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    mandragora
    wrote on last edited by
    #1

    Hi All,

    I do have two QQuickWidgets created from two different QML files.
    What's the best approach to do drag and drop between the two ?

    Am I forced to create a single QML file ?

    Thanks a lot for all the help,

    Ben

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

      Hi,

      AFAIK, both approaches are possible and it completely depends upon the requirement of your project.

      157

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

        Hi there a thank you very much for your reply.
        Would it be possible to point me in the right direction to check out examples of both approaches ?

        Thank you very much for your help,

        Kind regards,

        Ben

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

          If you have Qt installed you can find it under Examples folder
          For eg on my systems its <Qt Installed Dir>Examples/Qt-5.4/quick/draganddrop.
          For QQuickWidget approach, you can create 2 QML files depending upon the mentioned examples and load them in QQuickWidget. It should work with some minor changes.

          157

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

            Thanks a lot that realy helped me!
            It worked like a charm within QML but unfortunately I have been unable to do the same between two QQuickWidgets.
            Any Ideas ?

            Thanks a lot,

            Ben

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

              Can you post the sample code that you created ? So that we can understand clearly.

              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