[Qt-qml] C++ models question + Listview + Expanded delegates
Yuvraaj Kelkar
yuvraaj at gmail.com
Tue Jan 18 22:27:05 CET 2011
The way I did it was to create a detail view that was not incorporated
into the Delegate. When the user clicks on the Delegate, the onClick
pulls the details and updates the Details view.
This way, the details are updated on mouse click.
My delegate's mouse clicks are handled here:
http://code.google.com/p/qgvdial/source/browse/trunk/qml/ContactsList.qml#121
Thats where the details view fields are updated from the model.
On 01/18/2011 01:03 PM, Alexey Zaryanov wrote:
> I have my own model in C++ and Listview with expanded delegates ( see
> examples
> "examples\declarative\modelviews\listview\expandingdelegates.qml" ).
> Then the delegate is expanded it show detailed information. How can i
> take detailed information then it realy need ? Listview asks all
> information ( every roles ) but i need only names and other
> information ( others roles ) then delegate is expanded. It is
> essential for good performance.
>
>
> Thnx !
>
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110118/62123e7b/attachment-0001.html
More information about the Qt-qml
mailing list