Skip to content

Instantly share code, notes, and snippets.

@oKcerG
Last active Jan 12, 2018
Embed
What would you like to do?
import QtQuick 2.7
Rectangle {
property alias textItem: textItem
property alias text: textItem.text
property alias textColor: textItem.color
property alias maxWidth: textItem.width
property alias maxHeight: textItem.height
property alias maximumLineCount: textItem.maximumLineCount
property alias wrapMode: textItem.wrapMode
property alias elide: textItem.elide
property alias padding: textItem.padding
property alias leftPadding: textItem.leftPadding
property alias rightPadding: textItem.rightPadding
property alias topPadding: textItem.topPadding
property alias bottomPadding: textItem.bottomPadding
implicitWidth: textItem.implicitWidth
implicitHeight: textItem.implicitHeight
width: textItem.contentWidth + leftPadding + rightPadding
height: textItem.contentHeight + topPadding + bottomPadding
Text {
id: textItem
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment