How to create two rectangle side by side in Qt Quick
QML and Qt Quick
1
Posts
1
Posters
705
Views
1
Watching
-
wrote on 19 Nov 2014, 07:56 last edited by
I am a new qml programmer, following the link at
http://qt-project.org/doc/qt-4.8/qml-rectangle.html import QtQuick 1.0
@
Rectangle {
width: 100
height: 100
color: "red"
border.color: "black"
border.width: 5
radius: 10
}
@
I can run the above code but i can't run the code below. My objective is to create two Rectangle side by side
@
Rectangle {
color: "#00B000"
width: 80; height: 80
}Rectangle {
color: "steelblue"
y: 100; width: 80; height: 80}
@
I find my code in Qt Quick UI cannot work in Qt Widget Application
1/1