On 3 Nov 2026, at 14:38, Eike Ziller via Development 
<[email protected]> wrote:

On 2. Nov 2026, at 16:00, Eskil Abrahamsen Blomfeldt via Development 
<[email protected]<mailto:[email protected]>> wrote:

   • Add run-time warning to Qt 6.12.x which triggers whenever AutoText gets 
resolved to RichText/StyledText. This detects intentional use and alerts 
developers that they need to update their code before the next minor release. 
Work in progress for Qt Widgets here: 
https://codereview.qt-project.org/c/qt/qtbase/+/784816
   • Add compile-time warnings using qmllint and clazy to detect uses where 
AutoText is used with either rich text or undeterminable (possibly 
user-provided) text.
   • Blog about it and try to spread the word as much as possible
   • Change the default from AutoText to PlainText in Qt 6.13.  Possibly with 
an environment variable to manually select the old behavior.

Why an environment variable instead of a compile time define? (Like the 
ASCII->QString auto-conversion options.) An environment variable sounds weird 
to me for something that should be a developer decision.

Agreed. Environment variables are also global, so in a host/plugin scenario the 
choice would be made on behalf of components outside the one setting the 
variable.

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

Reply via email to