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.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to