Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.6
- import QtQuick.Window 2.2
- import QtQuick.Controls 2.1
- import QtQuick.Layouts 1.1
- Window {
- visible: true
- width: 640
- height: 480
- title: qsTr("Hello World")
- ListView {
- model: myModel
- width: parent.width
- height: 400
- id: list_id
- delegate: Rectangle{
- MouseArea{
- anchors.fill: parent
- }
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.margins: 10
- height: 90
- width: parent.width
- color: "red"
- visible: true
- clip: true
- ColumnLayout{
- spacing: 2
- Label{
- text: index
- }
- Label{
- text: toUser
- }
- Label{
- text: fromUser
- }
- Label{
- text: topic
- }
- Label{
- text: content
- }
- Image {
- id: url
- source: imageURL
- }
- }
- Rectangle{
- width: parent.width
- height: parent.height
- anchors.margins: 5
- color: "lightsteelblue"
- }
- }
- }
- }
- Text {
- id: content
- text: qsTr(content)
- Rectangle{
- parent: parent.width
- height: parent.height
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement