Well, that's just math, Shaun, got little to do with QML itself :) Figure out what exactly needs to be centered (I guess it's middle of central item or middle of spacing between two central items if you've got even number of them), then calculate offsets depending on the index.
If you will still have problems, post a sketch of what you want to achieve. Best regards, Artem. On Aug 8, 2011, at 10:31 PM, Shaun Reich wrote: > Yes, this is excellent, thank you. > > However, I'm having trouble positioning the contents manually. I need it to > be in the center of the screen. > > The closest I can get to what I want, is with the left-most item being at the > horizontal center, and the rest of the items appear on the right side. > Obviously this isn't ideal. I've tried quite a few variations, but it doesn't > work as you would think. For instance, I've tried x: (parent.width / 2) - > (index * width / 2), where width is 64. I've checked the values and e.g. > parent.width/2 is fine...thoughts? > > -- > Shaun Reich, > KDE Software Developer (kde.org)
_______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
