import QtQuick 1.0 Item { id: lineInput property alias text: input.text property alias input: input height: 50 BorderImage { id: borderImage border.left: 10 border.top: 10 border.bottom: 10 border.right: 10 source: "../images/lineedit.png" anchors.fill: parent } TextInput { id: input color: "#151515"; selectionColor: "green" font.pixelSize: 24; font.bold: true width: borderImage.width-16 anchors.centerIn: parent focus: true } }