The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
const char * | ascii () const |
QChar | constref ( uint i ) const |
bool | contains ( QChar c, bool cs ) const |
bool | contains ( const QString & s, bool cs ) const |
QString | copy () const |
bool | endsWith ( const QString & s, bool cs ) const |
int | find ( QChar c, int i = 0, bool cs = true ) const |
int | find ( const QString & s, int i = 0, bool cs = true ) const |
int | find ( const QRegExp & rx, int i = 0 ) const |
int | findRev ( QChar c, int i = -1, bool cs = true ) const |
int | findRev ( const QString & s, int i = -1, bool cs = true ) const |
int | findRev ( const QRegExp & rx, int i = -1 ) const |
const char * | latin1 () const |
QString | leftJustify ( int width, QChar fill = QLatin1Char( ' ' ), bool trunc = false ) const |
QByteArray | local8Bit () const |
QString | lower () const |
QChar & | ref ( uint i ) |
QString & | remove ( QChar c, bool cs ) |
QString & | remove ( const QString & s, bool cs ) |
QString & | replace ( QChar c, const QString & after, bool cs ) |
QString & | replace ( const QString & before, const QString & after, bool cs ) |
QString & | replace ( char c, const QString & after, bool cs ) |
QString & | replace ( char c, const QString & after, Qt::CaseSensitivity cs ) |
QString | rightJustify ( int width, QChar fill = QLatin1Char( ' ' ), bool trunc = false ) const |
QString & | setAscii ( const char * str, int len = -1 ) |
QString & | setLatin1 ( const char * str, int len = -1 ) |
void | setLength ( int nl ) |
QString & | setUnicodeCodes ( const ushort * unicode_as_ushorts, int size ) |
QString | simplifyWhiteSpace () const |
bool | startsWith ( const QString & s, bool cs ) const |
QString | stripWhiteSpace () const |
const ushort * | ucs2 () const |
QString | upper () const |
QByteArray | utf8 () const |
operator const char * () const |
QString | fromUcs2 ( const ushort * unicode, int size = -1 ) |
Use toAscii() instead.
Warning: This function is not reentrant.
See also setAscii().
Use at() instead.
Use the contains(QChar, Qt::CaseSensitive) overload instead.
Use the contains(QString, Qt::CaseSensitive) overload instead.
Use simple assignment instead. QString is implicitly shared so if a copy is modified only the copy is changed.
Use the endsWith(QString, Qt::CaseSensitive) overload instead.
Use indexOf() instead.
Use indexOf() instead.
Use indexOf() instead.
Use lastIndexOf() instead.
Use lastIndexOf() instead.
Use lastIndexOf() instead.
Use fromUtf16() instead.
Use toLatin1() instead.
Warning: This function is not reentrant.
See also setLatin1().
Use leftJustified() instead.
Use toLocal8Bit() instead.
Warning: This function is not reentrant.
Use toLower() instead.
Use operator[]() instead.
Use the remove(QChar, Qt::CaseSensitive) overload instead.
Use the remove(QString, Qt::CaseSensitive) overload instead.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
Use the replace(QString, QString, Qt::CaseSensitive) overload instead.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
Use rightJustified() instead.
Use fromAscii() instead.
See also ascii().
Use fromLatin1() instead.
See also latin1().
Use resize() instead.
See also length().
Use setUtf16() instead.
Use simplified() instead.
Use the startsWith(QString, Qt::CaseSensitive) overload instead.
Use trimmed() instead.
Use utf16() instead.
Use toUpper() instead.
Use toUtf8() instead.
Warning: This function is not reentrant.
Use toAscii().constData() instead.