LineEdit alignment does not align
-
Hi! So I was having my first experience with QT designer following one guide for making a simple calculator. I ran into a problem: the text does not align manually, although it seems like it should.
@Wallters
I believe you have done the right thing. However, I am not sure it has fully taken in Designer: because this changes the default from align left you should see thatalignment
(a) is in bold and (b) now showsAlignRight, AlignVCenter
while yours still showsAlignLeft, AlignVCenter
.Have you clicked off that item to let it "take"? If you Preview your dialog from Designer (or run your application) how does it appear?
-
@Wallters
I believe you have done the right thing. However, I am not sure it has fully taken in Designer: because this changes the default from align left you should see thatalignment
(a) is in bold and (b) now showsAlignRight, AlignVCenter
while yours still showsAlignLeft, AlignVCenter
.Have you clicked off that item to let it "take"? If you Preview your dialog from Designer (or run your application) how does it appear?
-
Have you clicked off that item to let it "take"?
When I click off it just goes to default AlighLeft. And if I run it it's also always alligned to left.
-
@Wallters
Ah! Well that does not sound good, does it?! I don't know why. Could you take a moment to create a totally standalone new widget/dialog with just aQLineEdit
on it and see what happens there? -
@Wallters
Works fine for me with a standard Qt Creator 6.x. What does your Help > About Qt Creator... tell you have? If it's a new one, especially perhaps the 10.x just released, maybe that is an issue...?UPDATE
https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-113441
https://bugreports.qt.io/browse/QTBUG-112682This is why I wouldn't touch a "new" Creator/Designer with a bargepole, but that's just me.....
If I understand correctly, it claims that you need Qt version 6.5.1 or 6.6.0. Your Help > About... tells you which version of Qt your Creator has been compiled against.
-
@Wallters I appended the last line above, see what version of Qt your Creator has been compiled against.
-
@Wallters
:)
That confirms this is the issue.I am unclear whether you mean you have replaced Creator-only with Qt 5.11.1 or the Qt you will compile your projects against with 5.11.1. The former is OK --- so long as Creator works fine --- but if you want your Qt development to be against Qt6 it won't do.
If you could get a 6.5.1 or 6.6.0 you would be in a better position that you started from.
-
@Wallters
:)
That confirms this is the issue.I am unclear whether you mean you have replaced Creator-only with Qt 5.11.1 or the Qt you will compile your projects against with 5.11.1. The former is OK --- so long as Creator works fine --- but if you want your Qt development to be against Qt6 it won't do.
If you could get a 6.5.1 or 6.6.0 you would be in a better position that you started from.
-