I have created a plugin which first shows login window and then user needs to enter details and press submit. After details are verified at back-end, a new window appears with buttons for different tasks.
I wish to have this window appear as a toolbar on the right side in QGIS by default such that the user do not need to move this window again and again.
For example, below is AutoField Plugin Window on the right side of QGIS:
I have tried to do the same with below code:
dock_widget = QDockWidget(self.iface.mainWindow()) dock_widget.setWidget(MainWindow) dock_widget.setFixedWidth(356) dock_widget.setFixedHeight(600) self.iface.addDockWidget(QtCore.Qt.RightDockWidgetArea, dock_widget)
However, half of the bottom of this toolbar appears blank. How to have this toolbar fixed with particular size on the right hand side?