[Interest] QML Text vertical center issue
Alexander Dyagilev
alervdvcw at gmail.com
Tue Dec 10 21:13:43 CET 2024
Hello,
I want my text element to be centered vertically. For this, I've tried to
use this:
*anchors.horizontalCenter: parent.horizontalCenter*
However, it does not work well: it has 11 pixels above it and 13 pixels
below it inside of its parent.
So, I've tried this instead:
*height: parent.height*
*verticalAlignment: Text.AlignVCenter*
And, this one works just fine.
Why? Is it a QML bug?
I've tried Qt 6.6.3 and Qt 6.8.1. Windows 10.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241211/8f36fafc/attachment.htm>
More information about the Interest
mailing list