Hello,

As example, let's suppose I would like to change font name for a TextField
only in case it contains "test" text.

What is the best way to do it in QML? Is there any special syntax maybe?

TextField {
    font.family: text.contains("test") ? "Inter" : DONT_CHANGE_PROPERTY
}
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to