import QtQuick 1.0 import QtWebKit 1.0 Rectangle { height: 200 width: 200 color: "#141d49" Rectangle { id: rectangle1 border.color: "#0037ff" gradient: Gradient { GradientStop { position: 0 color: "#7d7b97" } GradientStop { position: 1 color: "#313f4d" } } anchors.rightMargin: 20 anchors.leftMargin: 20 anchors.bottomMargin: 20 anchors.topMargin: 20 anchors.fill: parent anchors.margins: 2 Text { id: text1 x: 11 y: 12 width: 80 height: 20 text: "text" font.pixelSize: 12 } } }