My QFrame widget is not well center-aligned
-
Hello!
I'm facing some confusions about how Policies and Sizes work, i have isolated my code so i can reproduce the question in an attachment picture, it is self-explanatory.
Aditional to this, i noticed that image does not stretchs when i set QSize to bigger or lower, its looks like only the frame is resizing..
Thanks in advance.
-
Hello!
I'm facing some confusions about how Policies and Sizes work, i have isolated my code so i can reproduce the question in an attachment picture, it is self-explanatory.
Aditional to this, i noticed that image does not stretchs when i set QSize to bigger or lower, its looks like only the frame is resizing..
Thanks in advance.
@1XU7
The label's text is left-aligned by default.
This line will fix the issue:
lblTitle->setAlignment(Qt::AlignCenter);