Hi,
I have the following code:
Rectangle {
id: descrPlaceholder
width: imageViewer.width
height: dp(150)
anchors.top: imageViewer.bottom
anchors.topMargin: dp(10)
anchors.left: imageViewer.left
visible: true
color: ST.editBackground()
border.color: ST.borderClr()
border.width: dp(2)
AppTextEdit {
id: descrption
placeholderText: qsTr("Describe the Friend:")
cursorColor: ST.cursorClr()
}
}
The point was to get a background color through the Rectangle. At this point I have the background color and I can see the placeholder text, but the Rectangle masks the AppTextEdit so I can’t write anything. Hi can I solve this problem, or how can I add a background color to AppTextEdit without using Rectangle?
Thank you for your help.