I'm loading the QDockWidget and it does load fine and has the content but it seems that doesn't have a fixed size that avoids it's content to be hidden once loaded.
this is how it looks when is loaded:
and this is how it looks when manually drag it open (and how should look when loaded):
code:
self.mdo = QMdiArea()
self.buttons = QDockWidget('buttons', self.mdo)
self.buttonsreen = QWidget()
self.buttonsreen.resize(400,300)
self.buttonsreen.setWindowTitle('direccion')
self.btnfront = QPushButton('adelante', self.buttonsreen)
self.btnfront.setToolTip('avanza una foto')
self.btnfront.resize(self.btnfront.sizeHint())
self.btnfront.move(200, 0)
self.btnfront.clicked.connect(frontbutton)
self.btnback = QPushButton('atras', self.buttonsreen)
self.btnback.setToolTip('retrocede una foto')
self.btnback.resize(self.btnback.sizeHint())
self.btnback.move(0,0)
self.btnback.clicked.connect(backbutton)
self.buttons.setWidget(self.buttonsreen)
self.iface.addDockWidget(Qt.RightDockWidgetArea, self.buttons)
How is it forced to open with that specific size and how do I avoid other widgets to hide the buttons?