[Qt-interest] Curious about deprecation messages in 4.7

Richard Moore richmoore44 at gmail.com
Mon Sep 27 11:56:00 CEST 2010


On Mon, Sep 27, 2010 at 3:09 AM, Bob Hood <bhood2 at comcast.net> wrote:
>  I'm seeing messages like the following as I build 4.7:
>
> *    ... : warning C4996: 'QChar::QChar': was declared deprecated
>
>    ... : warning C4996: 'QString::QString': was declared deprecated
>
> Admittedly, I've not looked at the Qt source code about these, but are these
> messages actually valid?  QChar and QString have actually been declared
> decprecated?  Those seems like foundation-level classes, so it's rather
> surprising to seem them deprecated.

It's not the classes, it's a particular constructor that has been
deprecated. eg. you see this if you do QChar('*') instead of
QLatin1Char('*') or QChar('*',0);

Cheers

Rich.




More information about the Qt-interest-old mailing list