Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Does Qt have some kind of "Dock Indicator"?
Adelost last edited by
Does Qt have some kind of Dock Indicator?
In Source Film Maker (made using Qt) you get these "Dock Indicator" when moving windows. Any idea how to replicate?
!http://i.imgur.com/obcJl1i.png(Qt Dock Indicators)!
bodzio131 last edited by
In company which I work for we did similar thing by showing semi-transparent image (with dock-helper indicator) over whole application.
when you start a window drag show your "DragOverlay" widget (derived from QWidget).
In the dragMove handlers of the "DragOverlay" widget you need to implement the logic for the indicator handling and save them to a list.
In the paintEvent you then need to do the painting of your stored indicators. In the dropEvent just hide the overlay.
You need also to make sure that the overlay gets also resized when it's parent gets resized and make sure that it's always the topmost widget in the child-stack.