Hi,

we also need to agree on whether the Qt library rules apply to the full extent; 
for example:

- Do we use the modern string literals (u"bla"_s, previously, example code just 
constructed QString from ASCII and did not care about -DQT_NO_CAST_FROM_ASCII, 
IIRC)
- Should tr() be used for all  user-facing messages (although examples mostly 
do not have translations set up)
- Do we use std::as_const to avoid detaching containers in loops (mostly 
missing for code ported from Q_FOREACH)

and probably some more?

Generally, when polishing examples, I found that member initialization greatly 
simplifies code.

Regards, 
Friedemann
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to