Constant QString Messages
Unsolved
General and Desktop
-
Hello,
In my software I have many QString messages used in dialog or message boxes.
They are all constant.
Could you please confirm that the best way is to define them in my class as private const members and initialize them in the cpp where I use them ?Many thanks
-
Hi,
These strong aren't part of your API so I'd rather put them only in the cpp file as static const QString generated with QStringLiteral.