On 8/3/26 7:26 PM, Andreas Hartmetz wrote:
Am 29.07.26 um 09:52 schrieb Kai Uwe Broulik:
Hi everyone,

Qt has a feature called AutoText where when you have a label (both in Qt Widgets and Qt Quick) and its contents “look like HTML” (Qt::mightBeRichText) it will switch to rich text (styled text) and start interpreting it as HTML.
A probably impractical idea to preserve some of the convenience: Distinguish "static" text input from "runtime" text input and preserve the auto rich text feature for the former. Some languages make a distinction between user-supplied strings and validated strings, but that seems like much too big of a change. This would need a predictable and conservative (if in doubt, not richt text) heuristic to really improve safety and the ability to see through translations to make it useful enough. Just mentioning it in case somebody can think of a good way to implement it.

Like something similar to Template String from Python?
https://peps.python.org/pep-0750/
or you had a diff feature from another programming language in mind?

--
Dr. Cristian Maureira-Fredes
Principal R&D Manager

The Qt Company GmbH
Erich-Thilo-Str. 10
12489 Berlin, Germany

Geschäftsführer: Mika Pälsi,
Juha Varelius, Juha Puputti
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
--

--
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to