Hello, I often find myself doing things like:
self.layout().addWidget(self.widget) QTimer.singleShot(1, self.adjustSize)It seems I need to let the event loop finish doing its business before attempting to adjust the size of the containing widget. I'm guessing that the child widget aren't yet visible and thus their sizeHints are getting ignored.
Anyway, is there a cleaner way of achieving the same thing? The delayed update feels like a kludge to me.
Thanks, Christian
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
