Layout problem
Unsolved
QML and Qt Quick
-
Hi everyone
I'm practicing on a small test project
I would like to create an app like this
but I have problems actually I don't really know where the problem comes from
I think the ScrollView is the problem
CodePage { id: root header: ToolBar { anchors.top: parent.top RowLayout{ id: rowLayout anchors.fill: parent ToolButton{ icon.source: "qrc:/IMG/Icon/24x24/back.png" icon.width: 24 icon.height: 24 } } } ColumnLayout{ id: columlayoutParent anchors.fill: parent Rectangle{ Layout.fillWidth: true Layout.fillHeight: true ScrollView{ GridLayout{ anchors.fill: parent columns: 2 BorderImage { id: persoImage source: "qrc:/IMG/MAD-modified.png" width: 200 height: 200 MouseArea{ anchors.fill: parent cursorShape: Qt.OpenHandCursor onClicked: console.log("s") } } Text { text: qsTr("<< :") font.bold: true font.pixelSize: 24 } Text { text: qsTr("Name :") font.bold: true font.pixelSize: 24 } Text { text: qsTr("XXX") font.bold: true font.pixelSize: 24 } Text { text: qsTr("Date : ") font.bold: true font.pixelSize: 24 } Text { text: qsTr("29/09/1999") font.bold: true font.pixelSize: 24 } Text { text: qsTr("XXX : ") font.bold: true font.pixelSize: 24 } Text { text: qsTr("XXX") font.bold: true font.pixelSize: 24 } Text { text: qsTr("XXX : ") font.bold: true font.pixelSize: 24 } Text { text: qsTr("XXX") font.bold: true font.pixelSize: 24 } Rectangle{ Layout.fillWidth: true Layout.fillHeight: true ColumnLayout{ anchors.fill: parent Text { text: qsTr("XXX") font.bold: true font.pixelSize: 24 Layout.alignment: Qt.AlignCenter } Frame{ id: frame Layout.fillWidth: true Layout.fillHeight: true Layout.alignment: Qt.AlignCenter Text { text: qsTr("edit editeditediteditediteditediteditediteditedit") } } Text { text: qsTr("XXX") font.bold: true font.pixelSize: 24 Layout.alignment: Qt.AlignCenter } Frame{ Layout.fillWidth: true Layout.fillHeight: true Layout.alignment: Qt.AlignCenter Text { text: qsTr("edit editeditediteditediteditediteditediteditedit") } } } } } } } } }
THANK YOU IN ADVANCE