Quantcast
Channel: Foros de Velneo » Todas las publicaciones
Viewing all articles
Browse latest Browse all 5035

Respuesta a: Migración QML1.1 a QML2

$
0
0

Buenas tardes, perdón por el desconocimiento de QML.
Ya había revisado el documento que me indicas, pero no logro saber porque no se muestra la lista inicial de opciones del TPV que simplemete lo que hace es lanzar una lista QML

import QtQuick 2.4

Rectangle{
id: root
width: 460
height: 640
color: “transparent”
anchors.fill: parent
FontLoader {
id: fontawesome
source: “../fonts/fontawesome-webfont.ttf”
}

Rectangle{
color: “#333333”
width: parent.width- 17
height: parent.height
}

ListView{
id: vList
objectName: “theListView”
signal selectionChanged(int index)
signal itemActivated(int index)
model: theListModel
onCurrentIndexChanged:
{
list.selectionChanged( list.currentIndex )
}

onCountChanged:{

list.fillListModel()
}
}

/*function createSpriteObjects() {
var component = Qt.createComponent(“CollapsibleList.qml”);
var sprite = component.createObject(root);
}*/

CollapsibleList{
id: list
anchors.fill: parent
onItemClicked: {
theRoot.setVar(“DOOP”, selected )
vList.currentIndex = vList.currentIndex >= 1? 0 : 1
vList.itemActivated(1)
}
}
//Component.onCompleted:{ root.createSpriteObjects() }
}

Gracias.


Viewing all articles
Browse latest Browse all 5035

Trending Articles