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

Allow changing bitmap while drag/drop operation

XMLWordPrintable

      According to the documentation, the pixmap that is set by
      QDrag::setPixmap() cannot be changed anymore after the drag operation has been started.

      Drag target might want to modify this pixmap, or at least
      switch off the pixmap, while the drag is moving above this special target widget.

      Requesting that the restriction of the "fixed pixmap" should
      be overcome in QTs future releases.

      Propose an Interface, like:

      QDragMoveEvent::setOverridePixmap(bool bUseOverridePixmap, const QPixmap & pixmap);
      // pixmap can also be empty, which makes the pixmap invisible

      and the QDragManager should internally restore the original pimap, when the dragtarget
      get's the QDragLeave event.

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

            waterdomain Water Domain (Inactive)
            kamartti Katja Marttila
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes