[Qt-qml] PathView Delgate Positions

alan.alpert at nokia.com alan.alpert at nokia.com
Fri Dec 3 09:08:45 CET 2010


> -----Original Message-----
> From: qt-qml-bounces at trolltech.com [mailto:qt-qml-
> bounces at trolltech.com] On Behalf Of ext Michael Dippold
> Sent: Friday, December 03, 2010 3:24 AM
> To: qt-qml at trolltech.com
> Subject: [Qt-qml] PathView Delgate Positions
> 
> When I have an image for a delegate of a pathview, it appears to
> position the images along the path relative to the center of the image
> rather than top/left.  If I reload the pathview's model I see the new
> images for a split second loading according to top/left position and
> then jump to positioning relative to the center of the image.  Is
> there some way I can control this behavior?
> 
> Thanks,
> Mike

Try placing the Image in an empty Item. PathView places items so they are centered on the path based on the size of the root item of the delegate. If the root item is 0x0 then it will be the same as being placed top-left. If you don't explicitly enable clipping, the full child Image will still be drawn.

--
Alan Alpert




More information about the Qt-qml mailing list