I have a TextField where I want to conditionally show or hide the background. Here's a text field with a background:
TextField {
id: with_background
}
and here's one without:
TextField {
id: without_background
background: null
}
I've tried setting the background conditionally to undefined, but that didn't work:
TextField {
background: row.activeFocus ? TextField.background : null;
}
Is this even possible in QML?