Advertisement
Guest User

projectlist.qml

a guest
Jun 20th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ListView {
  2.         id: list_view
  3.  
  4.         anchors.fill: parent
  5.         model: productlist
  6.         delegate:
  7.             Rectangle{
  8.                height: 20
  9.                width: 200
  10.                color: "#CCCCCC"
  11.                Text {
  12.                    text: "stub" //list_view.currentItem.data.display_name
  13.                }
  14.             }
  15.  
  16.         Component.onCompleted: {
  17.             console.log("qml:");
  18.             for(var propertyName in productlist) {
  19.                 console.log("productlist["+propertyName+"]: "+productlist[propertyName]);
  20.             }
  21.  
  22.         }
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement