Change the alignment of the labels to the right:
searchFor->setAlignment(Qt::AlignRight);
within->setAlignment(Qt::AlignRight);
of->setAlignment(Qt::AlignRight);
searchFor->setAlignment(Qt::AlignRight);
within->setAlignment(Qt::AlignRight);
of->setAlignment(Qt::AlignRight);
To copy to clipboard, switch view to plain text mode
Then set the combo boxes and the spin box to span applicable amount of columns:
search->addWidget(searchCombo, 0,1,1,3); // span 3 columns
search->addWidget(kiloMeters, 1,1); // span only 1 column
search->addWidget(searchCombo1, 2,1,1,2); // span 2 columns
search->addWidget(searchCombo, 0,1,1,3); // span 3 columns
search->addWidget(kiloMeters, 1,1); // span only 1 column
search->addWidget(searchCombo1, 2,1,1,2); // span 2 columns
To copy to clipboard, switch view to plain text mode
Finally play with some column stretch factors:
search->setColumnStretch(1, 1);
search->setColumnStretch(2, 2);
search->setColumnStretch(3, 3);
search->setColumnStretch(1, 1);
search->setColumnStretch(2, 2);
search->setColumnStretch(3, 3);
To copy to clipboard, switch view to plain text mode
Bookmarks