warning: 'QString::operator const char*() const' is deprecated

You'll see this any time there's an implicit or explicit cast from a QString to a character array. To correct it, use the following example:

QString originalString = "blah";
QByteArray charableString = QString(originalString).toUtf8();

Then use charableString where the original string was used and all should be well. Reference

 
fixes_for_qt_deprecations.txt · Last modified: 2009/09/22 16:38 by pegasus
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki