Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Fix a dialog's position relative to the parent window position
Violet Giraffe last edited by Violet Giraffe
I want to "glue" a dialog to its parent, so that when the main window moves so does the dialog. What is the easiest way to implement that?
LuGRU last edited by
IMHO: store a pointer to "child window" (window that You want to move when parent moves) in parent widget, then overwrite mouseMoveEvent() / resizeEvent() and update position of child widget / window.