Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Drag and Drop with QQuickView
Qt 6.12 LTS is out! See what's new in the release blog

Drag and Drop with QQuickView

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 1 Posters 2.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.
  • F Offline
    F Offline
    frankiefrank
    wrote on last edited by
    #1

    I'm upgrading my application to Qt 5.1, Qt Quick 2.1.

    I display a QML view in my mostly widget based application, on top of QDeclarativeView.
    Originally I subclassed QDeclarativeView to add drag/drop functionality, so I could drop on top of the view and respond to it in my code.

    Now I see that QQuickView does not inherit from QWidget. How can I achieve the same functionality?

    "Roads? Where we're going, we don't need roads."

    1 Reply Last reply
    0
    • F Offline
      F Offline
      frankiefrank
      wrote on last edited by
      #2

      Just bumped into this:

      http://blog.qt.digia.com/blog/2013/02/19/introducing-qwidgetcreatewindowcontainer/

      I see this will give me a QWidget. How can I now write the code for its drag / drop slots without subclassing it?

      "Roads? Where we're going, we don't need roads."

      1 Reply Last reply
      0
      • F Offline
        F Offline
        frankiefrank
        wrote on last edited by
        #3

        I'd appreciate any help here: I'm still a bit stuck on the drag and drop functionality I need.

        I got an email notification about a reply here but now the link to the reply leads me to a whole different thread.

        "Roads? Where we're going, we don't need roads."

        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
        • Unsolved