set text
mylbl->setText("Hello QT! Hello QT!");
Dynamically resize based on text
mylbl->adjustSize();
Position center display: use horizontal layout and spacer control
The effect is as follows:
set text
mylbl->setText("Hello QT! Hello QT!");
Dynamically resize based on text
mylbl->adjustSize();
Position center display: use horizontal layout and spacer control
The effect is as follows: