TextEdit appearance
Solved
QML and Qt Quick
-
So we have QLineEdit in Widgets were you can see how big it is with the white background like this:
Now I thought to have a similar item like LineEdit I use TextEdit. But it shows up without borders:
Do I have to put it in a white rectangle to get the dame effect or am I missing something / using the wrong tyṕe?
-
@sandro4912 said in TextEdit appearance:
am I missing something / using the wrong tyṕe?
Yes,
TextEdit
is the low level component for multiline text input, it doesn't have any decoration. UseTextArea
instead.For single line text input,
TextField
is based onTextInput
. -
I now used TextField which then looks similar to QLineEdit.