Creating a new window by dragging page itself in QML? (and vice versa)
-
Hi. I want to develop an app where users can freely lay out widgets they want (usually defined as Pane) like Visual Studio. In Visual Studio, we can drag a source code tab to make a new window.
And this is my idea to implement that:
- When tab is clicked, capture its whole page as an image.
- In mouse dragging event, paint the captured image in right down the mouse pointer.
2.1. If the dragging finished in existing window, nothing happened (if necessary, changing the order of layouts).
2.2. If the dragging finished in outer space of the window, creates a new window showing the page being dragged.
What do you think of this idea? Or is there any types or functions to acheive this?
Any advise will helps a lot. Thanks for reading.