[Interest] QML: How to set verticalCenterOffset...
Igor Mironchik
igor.mironchik at gmail.com
Sun Aug 16 20:08:30 CEST 2015
Hi,
I'm trying to center ListView in a Rectangle.
I do:
anchors.centerIn: parent
But it moves ListView under the real center, so I need to add negative
verticalCenterOffset.
I've tried in ListView:
anchors.verticalCenterOffset: - height / 2.0
But it doesn't work. If I set verticalCenterOffset without calculations,
i.e. real number then all is ok...
How can I solve the problem?
--
Best Regards,
Igor Mironchik.
More information about the Interest
mailing list