Advertisement
Guest User

Untitled

a guest
May 15th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.65 KB | None | 0 0
  1. import QtQuick 2.9
  2. import QtQuick.Controls 2.2
  3.  
  4. Page {
  5.     id: paginaHabitaciones
  6.     width: 400
  7.     height: 600
  8.     title: "Zonas"
  9.  
  10.  
  11.     ScrollView {
  12.         anchors.fill: parent
  13.  
  14.         ListView {
  15.             width: parent.width
  16.             model: 5
  17.             delegate: ItemDelegate {
  18.                 text: "Zonas " + (index + 1)
  19.                 width: parent.width
  20.                 onClicked: {
  21.                     console.log( this.text );
  22.                     stackView.push( "EquiposForm.qml" )
  23.                 }
  24.             }
  25.         }
  26.     }
  27.  
  28.     Component.onCompleted: {
  29.         console.log( "selecciono " + xxx )
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement