I use some (many) QtGui.QDialog type windows, with QtGui.QPushButton, QtGui.QLabel, QtGui.QLineEdit... this sort of basic things, and until now I hard-coded all sizes and positions. Like:
Code: Select all
self.linkName = QtGui.QLineEdit(self)
self.linkName.setText( self.selectedLink.Name )
self.linkName.setMinimumSize(200, 1)
self.linkName.move(35,50)
self.OKButton = QtGui.QPushButton('OK', self)
self.OKButton.move(460, 600)
What is the proper way to draw a QtGui.QDialog with widgets in a dynamic/resizable way ?
Could someone point me to templates ?
As an example of what I would like to replicate (but better) is this command:
https://github.com/Zolko-123/FreeCAD_As ... tionLib.py