Scroll view
-
Hi,
It seems you want te List to be horizontal. You can do that by changing the "orientation":http://doc.qt.io/qt-5/qml-qtquick-listview.html#listview-layouts to horizontal.
Also please use Link tag to post the links.
-
In the similar way shav have explained earlier. Basically its the delegate which is used as a view.
-
Ok. It would be better if you post the code or probably a complete minimal sample.
-
@ApplicationWindow {
id : hola
title: ("SketchIt")
width: 640
height: 480
minimumWidth: mainToolBar .implicitWidth
visible: trueImage{ visible:true source:"C:\\1.jpg" sourceSize.width:hola.width/2 sourceSize.height:hola.height/2 } toolBar: ToolBar{ id : mainToolBar anchors.fill :parent RowLayout{ // width : parent.width ToolButton{ // text : ("main") iconSource: "C:\\Users\\Hassan Adil\\Documents\\sketchIt\\16.png" onClicked: hola.color = "blue" anchors.margins: 4
}
Button{ text : "close" onClicked: hola.close()
}
}
}
SplitView{
anchors.fill: parent
orientation: Qt.Horizontal
}}@
-
What do you mean by no view in this example?
-
Ok. Try prepending file:// to source. And you can use "/" as file separator. Qt internally handles it depending upon OS.
@
iconSource: "file://C:/Users/Hassan Adil/Documents/sketchIt/16.png"
@ -
Ok. By space, do you mean another path ?
-
Inside the RowLayout you can set spacing.
-
anchor it to the bottom.
-
and who is parent of ListView ?
-
How did you anchor it ? Can you post some code ?