[Interest] R: Map position of listview item

Simone cjb.sw.nospam at gmail.com
Thu Nov 21 16:31:55 CET 2013


Hi Mark,

I followed the documentation and now all is working as expected!

Thanks so much!

Simone

 

Da: Mark Tucker [mailto:mark.tucker at airborne.aero] 
Inviato: giovedì 21 novembre 2013 15:56
A: Simone; interest at qt-project.org
Oggetto: RE: [Interest] Map position of listview item

 

Hello,

 

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

 

Thanks

 

Mark

 

From: interest-bounces+mark.tucker=airborne.aero at qt-project.org
<mailto: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 <mailto:interest at qt-project.org> 
Subject: [Interest] Map position of listview item
Importance: High

 

Hello,

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?

 

Thanks

Simone

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


More information about the Interest mailing list