[Interest] Dragging rectangle between multiple QQuickView instances?
Mark Gaiser
markg85 at gmail.com
Thu Dec 24 14:15:43 CET 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151224/61157a68/attachment.html>
More information about the Interest
mailing list