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. Drap and Drop pixmap support?
Forum Updated to NodeBB v4.3 + New Features

Drap and Drop pixmap support?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.4k 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
    manishsharma
    wrote on last edited by
    #1

    I am trying to use Qt5.2's external drag and drop feature, but looks like it is incomplete as i can not find a way to attach pixmap during external drag and drop?

    I quick look @ http://code.woboq.org/qt5/qtdeclarative/src/quick/items/qquickdrag.cpp.html#724
    indicates a work in progress? Any idea when it will be available? Or a workaround till that time?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      manishsharma
      wrote on last edited by
      #2

      no one is working on dnd?

      1 Reply Last reply
      0
      • O Offline
        O Offline
        onek24
        wrote on last edited by
        #3

        Hey,

        whats your purpose for the drag and drop? You can use the Drag of the MouseArea. If you want to drop it to fixed positions, you'll have to write your own function(s) for that.
        I found an example in the documentation: "Drag and Drop":http://qt-project.org/doc/qt-5.0/qtquick/draganddrop.html

        1 Reply Last reply
        0
        • M Offline
          M Offline
          manishsharma
          wrote on last edited by
          #4

          My purpose is to set the QDrag's pixmap so that when i am doing an external drag i see a snapshot of the item i am moving.

          I would also like to know can i use drag and Item first as Internal drag and as soon as I detect MouseArea::mouseX is outside the some rect then I switch to External drag. Basically i want something like below:-

          • Mouse-pressed
          • Mouse-Moved
            ------Start internal drag
            ----------Mouse move event
            -------------Check if mouse position is out of rect,
            -----------------Yes it is outside rect start External drag
            ------------------------DragEnter
            -----------------------------If in the same window cancel External Drag and Start Internal Drag else continue.

          Basically i want to have external as well as internal drag inside the same drag sequence? Please let me know if it is possible?

          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