I need a qdialog with an image, which needs to respond to resizeevents().
This is for qt for android so I have to respond to the user rotating the device.
So I tried a qdialog with a qlabel which has a pixmap.
So in resizeEvent() I need to redraw the corresponding image, and then use QLabel::setPixmap with the new image again.
But on setPixmap the onresize is called again. And the dialog gets stuck in an infinite loop.

Any idea's please? I'm searching for hours now and I'm growing really dumb.