Search code examples
qtsignalsqwidget

Do QWidgets emits a signal when moved?


I need to know when a QWidget is being moved (when its x or y properties are changed). Is there any signal for that?


Solution

  • There is no signal for that, but there is an event handler you can override for your own widget: http://doc.qt.io/qt-5/qwidget.html#moveEvent