Contents |
This is a box which can be given any content and adapts its size accordingly. The default state of the box only show a header line and an icon which indicates if the box is expanded or not. Clicking on the header expands the box and shows the content. The behavior isn't final because detailed specifications are missing.
-
ExpandingBox {
id: expandingBox
width: 200
titleText: "ExpandingBox"
titleTextColor: "black"
anchors.centerIn: parent
detailsComponent: expandingBoxComponent
Component {
id: expandingBoxComponent
Rectangle {
id: rect;
color: "blue";
height: 30; width: parent.width;
anchors.centerIn: parent
}
}
}