Solved QLabel alignment
-
Hello,
I have created a program where I add QLabels dynamically into a horizontal layout as:ui->horizontalLayout_2->insertWidget(i,ReactiveLabels[ReactiveLabels.size()-1]);
My problem is that QLabels are added in left from previous Label ,
How can I create the new QLabel in right from initial (or previous) QLabel?Thank you very much in advance
-
@jss193
Depends on what the value of youri
is. -
The value is 1, if I change it to 0 the QLabels generated still added left not right side respect the previous QLabel generated.
-
Hi,
Then why not just use addWidget ?
-
@sgaist
Thank you, it is solved by using addWidget.