User Tools

Site Tools


qt-quick-for-designers-1:all_about_lists

This is an old revision of the document!


All about lists

The following text is taken verbatim from the source slides1) including errors in the code examples.

Models in QtQuick

  • What is a model?
    • All information about one single item
      • Name
      • Surname
      • Telephone Number
      • Favorite
      • Icon
  • Models in QtQuick
    • This is how a list item is organized in a QtQuick model. The ListModel element is an array of ListElements
ListModel {
  ListElement {
    picture: "images/user_1.png"
    name: "Adriel"
    surname: "Nunes Teles"
    telephone: "+1 347 715 3354"
    favorite: true
    icon: "sms"
  }
}
  • See example: addon/module-003/examples/ListModelExample.qml

ListView

GridView

JavaScript and ListModel

Animating list items

qt-quick-for-designers-1/all_about_lists.1373002436.txt.gz · Last modified: 2013/07/05 05:33 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki