QDialog resizeEvent not happening in time?

Printable View