Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36173

QDrag allow change cursur while draging

    XMLWordPrintable

Details

    Description

      It is not possible to easy change the current drag cursor with a custom icon/pixmap, when hovering on possible target widget insert areas.

      When a drag and drop operation starts on the source widget, a QDrag object is created. After this Qt takes ownership.

      In the target widget, where the droping takes place, it is not possible to get the current QDrag object pointer and call QDrag::setDragCursor(...)

      http://www.qtcentre.org/threads/7603-cursor-pixmap-during-drag-amp-drop
      http://stackoverflow.com/questions/5456674/qt-set-custom-drag-cursor

      Attachments

        1. DragSample.tar.gz
          4 kB
          Gatis Paeglis

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              losty Thomas B.
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes