I create a pushButton and a lineEdit, then put them into a horizontalLayout.
Is there a way to set pushButton.width() : lineEdit.width() = 1 : 7 ??? (without hard pixel for each)
I create a pushButton and a lineEdit, then put them into a horizontalLayout.
Is there a way to set pushButton.width() : lineEdit.width() = 1 : 7 ??? (without hard pixel for each)
Yes, use the second argument to your addWidget() calls. See the [doc=/layout.html#stretch-factors]Layout Management[/docs] for more on stretch factors.
Bookmarks