Prefer setGeometry to resize()
Try to compress as much as possible calls to move and resize, using setGeometry in all places is possible, to minimize transitional inconsistent states. In resizeEvent use a setPosition() only if the resize didn't come from us, to minimize manual moves and on wayland possible configureRequests with an outdate size