![]() ![]() (self.style().standardIcon(QStyle.SP_DialogOpenButton)) Line = QLineEdit(maxLength=8, objectName="QLineEdit_fname") Validator = QRegExpValidator(QRegExp(r"^$")) ![]() Line = QLineEdit(objectName="QLineEdit_dir")īutton = QPushButton("", objectName="QPushButton_dir")ītIcon(self.style().standardIcon(QStyle.SP_DialogOpenButton)) MWE: First, the version "working", but with everything in the same object. But putting everything in the same object impacts rapidly code readability, so for once, I wanted to split my GUI into multiple simpler widget that would be arranged together.īut when I do that, the alignment in the QFormLayout is lost. I started by defining everything within the same QWidget, named CentralWidget that I wanted to add as the central widget of a QMainWindow. I want a simple widget which contains a QLineEdit, a QPushButton and a second QLineEdit to enter a directory and file name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |