By adding (modified version of drwr’s answer for wxWidgets):
class QTPandaWidget(QWidget):
def __init__(self, parent=None):
super(QWidget, self).__init__(parent)
def resizeEvent(self, evt):
wp = WindowProperties()
wp.setSize(self.width(), self.height())
wp.setOrigin(self.x(),self.y())
base.win.requestProperties(wp)
and replacing
self.pandaContainer = QWidget(self)
with
self.pandaContainer = QTPandaWidget(self)
you can make panda window resizeable in PyQt.
Edit: Solved positioning issues (I hope…)
Edit2: It doesn’t work with QHBoxLayout, for example…