![Uwe Rathmann](/assets/img/avatar_default.png)
https://github.com/uwerat/qskinny/issues/131 is in place we hopefully can remove it again
57 lines
1016 B
QML
57 lines
1016 B
QML
import QtQuick 2.0
|
|
import Skinny 1.0
|
|
import Test 1.0
|
|
|
|
GridBox
|
|
{
|
|
//margins: 10 // only possible with Qt >= 6.2
|
|
margins { left: 10; top: 10; right: 10; bottom: 10 }
|
|
|
|
autoFillBackground : true
|
|
|
|
background
|
|
{
|
|
stops: [
|
|
{ position: 0.0, color: "White" },
|
|
{ position: 1.0, color: "White" },
|
|
]
|
|
}
|
|
|
|
TestRectangle
|
|
{
|
|
id: paleVioletRed
|
|
color: "PaleVioletRed"
|
|
}
|
|
|
|
TestRectangle
|
|
{
|
|
id: darkSeaGreen
|
|
color: "DarkSeaGreen"
|
|
}
|
|
|
|
TestRectangle
|
|
{
|
|
id: skyBlue
|
|
color: "SkyBlue"
|
|
}
|
|
|
|
TestRectangle
|
|
{
|
|
id: navajoWhite
|
|
color: "NavajoWhite"
|
|
}
|
|
|
|
Component.onCompleted:
|
|
{
|
|
addItem( paleVioletRed, 0, 0, 1, 2 );
|
|
addItem( darkSeaGreen, 1, 0, 2, 1 );
|
|
addItem( skyBlue, 2, 1, 1, 1 );
|
|
addItem( navajoWhite, 0, 2, -1, 1 );
|
|
|
|
setRowStretchFactor( 0, 1 );
|
|
setRowStretchFactor( 1, 2 );
|
|
setRowStretchFactor( 2, 1 );
|
|
}
|
|
}
|
|
|