I'm using QMdiSubWindow
, I want to capture any input which is attempting to modify the size/shape/position of the window and filter/modify the resulting position and size so that the widget is aligned to a grid.
QResizeEvent
seems to be too late, i.e. the window has already resized, layouts have already been calculated and often a complete repaint of the widget has been scheduled.
resizeEvent
and eventFilter
both just allow me to learn about the resize that has just occurred and 'undo' it if the change was undesirable, this is a massive performance problem for me (embedded device, slow graphics).
I'm currently catching QMouseEvent
s and modifying the reported cursor positions but this is messy and doesn't catch all cases where the window geometry changes.