[Interest] Can QObject::tr() be used in initialization of static const QString data members? [Qt 5.5.1, Windows]

Thiago Macieira thiago.macieira at intel.com
Mon Nov 9 23:35:28 CET 2015


On Monday 09 November 2015 11:28:45 Phil Weinstein wrote:
> We're not currently using Qt translation.  But, FWIW, if we were to, I
> guess we would initialize static QStrings in the following way (and not
> worry about them being 'const'):

I advise against static QStrings altogether. Just don't do that.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list