when i use the code below, Qt puts labels on the right side.
How can i put labels centered in the line?
Code:
{ ui.setupUi(this); mainlayout->addWidget(label1); mainlayout->addWidget(label2); mainlayout->addWidget(label3); mainlayout->addWidget(label4); ui.centralWidget->setLayout(mainlayout); }