add quick item to quick view dynamically
This commit is contained in:
32
doric-Qt/doric/resources/main.qml
Normal file
32
doric-Qt/doric/resources/main.qml
Normal file
@@ -0,0 +1,32 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.5
|
||||
|
||||
ApplicationWindow {
|
||||
visible: true
|
||||
width: 960
|
||||
height: 720
|
||||
title: qsTr("Scroll")
|
||||
|
||||
ScrollView {
|
||||
anchors.fill: parent
|
||||
|
||||
ListView {
|
||||
width: parent.width
|
||||
model: 1
|
||||
delegate: Rectangle {
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
Text {
|
||||
text: {return "Snake.js"}
|
||||
}
|
||||
}
|
||||
width: parent.width
|
||||
height: 60
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {demoBridge.navigate(index)}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
8
doric-Qt/doric/resources/panel.qml
Normal file
8
doric-Qt/doric/resources/panel.qml
Normal file
@@ -0,0 +1,8 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.5
|
||||
|
||||
Rectangle {
|
||||
width: 100
|
||||
height: 100
|
||||
color: 'red'
|
||||
}
|
6
doric-Qt/doric/resources/qtquickcontrols2.conf
Normal file
6
doric-Qt/doric/resources/qtquickcontrols2.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
; This file can be edited to change the style of the application
|
||||
; Read "Qt Quick Controls 2 Configuration File" for details:
|
||||
; http://doc.qt.io/qt-5/qtquickcontrols2-configuration.html
|
||||
|
||||
[Controls]
|
||||
Style=Default
|
6
doric-Qt/doric/resources/stack.qml
Normal file
6
doric-Qt/doric/resources/stack.qml
Normal file
@@ -0,0 +1,6 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.5
|
||||
|
||||
StackView {
|
||||
|
||||
}
|
6
doric-Qt/doric/resources/view.qml
Normal file
6
doric-Qt/doric/resources/view.qml
Normal file
@@ -0,0 +1,6 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.5
|
||||
|
||||
StackView {
|
||||
|
||||
}
|
Reference in New Issue
Block a user