first commit
This commit is contained in:
37
test/qxBlogModelView/qt/rcc/documents/main_qt6.qml
Normal file
37
test/qxBlogModelView/qt/rcc/documents/main_qt6.qml
Normal file
@@ -0,0 +1,37 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Item {
|
||||
width: 400
|
||||
height: 300
|
||||
Row {
|
||||
height: 20
|
||||
spacing: 20
|
||||
Button {
|
||||
text: "Clear"
|
||||
onClicked: myModel.clear()
|
||||
}
|
||||
Button {
|
||||
text: "Fetch All"
|
||||
onClicked: myModel.qxFetchAll_()
|
||||
}
|
||||
Button {
|
||||
text: "Save"
|
||||
onClicked: myModel.qxSave_()
|
||||
}
|
||||
}
|
||||
ListView {
|
||||
y: 30
|
||||
height: 270
|
||||
model: myModel
|
||||
delegate: Row {
|
||||
height: 20
|
||||
spacing: 10
|
||||
Text { text: "id: " + author_id }
|
||||
TextField {
|
||||
text: name
|
||||
onTextChanged: name = text
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user