[Interest] Map position of listview item

Mark Tucker mark.tucker at airborne.aero
Thu Nov 21 15:55:31 CET 2013


In this case it sounds like you want to be using either mapToItem() or mapFromItem().

Documentation for both here: http://doc-snapshot.qt-project.org/4.8/qml-item.html#mapFromItem-method



From: interest-bounces+mark.tucker=airborne.aero at qt-project.org [mailto:interest-bounces+mark.tucker=airborne.aero at qt-project.org] On Behalf Of Simone
Sent: 21 November 2013 09:15
To: interest at qt-project.org
Subject: [Interest] Map position of listview item
Importance: High

In my current project I have a listview (QML QtQuick1.1) and I want to know the exactly Y position of an item inside the list.
But I need the position relative to the container of the listview, not relative to the content.

I need this because for speedup the scroll, I removed a lot of things that are not necessary to view until an item is selected.
This "expand bar" must be shown when the item is clicked, and of course I want to show at the correct position.

May someone can help me?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131121/38913d57/attachment.html>

More information about the Interest mailing list