Created
June 30, 2013 14:55
-
-
Save ultramcu/5895452 to your computer and use it in GitHub Desktop.
QML element hierarchies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
QML element hierarchies | |
Author : MaIII Themd | |
Website : http://miiniq.blogspot.com | |
FB : http://www.facebook.com/PiShared | |
Env : Qt 5.0.2 clang 64 bit OSX 10.8.4 | |
*/ | |
import QtQuick 2.0 | |
Rectangle { | |
id: rec_1 | |
width: 400 | |
height: 400 | |
///* | |
Rectangle { | |
id: rec_1_gray | |
x:100;y:200; | |
width: 200;height: 100; | |
color:"gray" | |
Text{ | |
text:"Element Hierarchies" | |
anchors.centerIn: parent; | |
color:"white" | |
} | |
} | |
//*/ | |
Rectangle { | |
id: rec_1_red | |
x:0;y:0; | |
width: 200;height: 200; | |
color:"red" | |
} | |
Rectangle { | |
id: rec_1_green | |
x:200;y:0; | |
width: 200;height: 200; | |
color:"green" | |
} | |
Rectangle { | |
id: rec_1_blue | |
x:0;y:200; | |
width: 200;height: 200; | |
color:"blue" | |
} | |
Rectangle { | |
id: rec_1_black | |
x:200;y:200; | |
width: 200;height: 200; | |
color:"black" | |
} | |
Rectangle { | |
id: rec_1_pink | |
x:100;y:100; | |
width: 200;height: 100; | |
color:"pink" | |
Text{ | |
text:"http://miiniq.blogspot.com" | |
anchors.centerIn: parent; | |
} | |
} | |
// | |
/* | |
Rectangle { | |
id: rec_1_gray | |
x:100;y:200; | |
width: 200;height: 100; | |
color:"gray" | |
Text{ | |
text:"Element Hierarchies" | |
anchors.centerIn: parent; | |
color:"white" | |
} | |
} | |
//*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment