[Interest] Dragging rectangle between multiple QQuickView instances?

Mark Gaiser markg85 at gmail.com
Fri Jan 1 15:27:19 CET 2016


On Thu, Dec 24, 2015 at 2:15 PM, Mark Gaiser <markg85 at gmail.com> wrote:

> Hi,
>
> I want to move a rectangle between two different "windows", but how can i
> do that?
>
> The only possible way i can think of (but i do'n't know if that would even
> work) is:
> - Have N QQuickView classes (lets say 2, for the sake of this argument)
> - All QQuickView instances share the same QQmlEngine object
> - Listen to an equivalent of dragEnterEvent/dragLeaveEvent. An equivalent
> since those exist in QWidget, not in QQuickView or any of the classes it
> inherits from.
> - if an enter event is received on a respective QQuickView, figure out
> which QML Component caused the event and change it's position to be in the
> view of the QQuickView that received the event.
>
> That's how i think it "could" work.. But it probably won't be that "easy"
> ;)
> So before i start to fiddle with this, is there any way already to drag a
> rectangle between multiple QQuickView instances? If not, is the way i
> described above even possible? Or could there be a simpler way to
> accomplish the same thing?
>
> Best regards,
> Mark
>

Bump..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160101/16aaa369/attachment.html>


More information about the Interest mailing list