以下成员源于类 QByteArray are part of the Qt compatibility layer. We advise against using them in new code.
| QByteArray (int size ) | |
| QByteArray & | duplicate (const QByteArray & a ) |
| QByteArray & | duplicate (const char * a , uint n ) |
| int | find (char c , int from = 0) const |
| int | find (const char * c , int from = 0) const |
| int | find (const QByteArray & ba , int from = 0) const |
| int | find (const QString & s , int from = 0) const |
| int | findRev (char c , int from = -1) const |
| int | findRev (const char * c , int from = -1) const |
| int | findRev (const QByteArray & ba , int from = -1) const |
| int | findRev (const QString & s , int from = -1) const |
| QByteArray | leftJustify (uint width , char fill = ' ', bool truncate = false) const |
| QByteArray | lower () const |
| void | resetRawData (const char * data , uint n ) |
| QByteArray | rightJustify (uint width , char fill = ' ', bool truncate = false) const |
| QByteArray | simplifyWhiteSpace () const |
| QByteArray | stripWhiteSpace () const |
| QByteArray | upper () const |
使用 QByteArray (int, char) instead.
例如,若有代码像
QByteArray bdata; bdata.duplicate(original);
可以把它重写成
QByteArray bdata; bdata = original;
注意: QByteArray uses implicit sharing so if you modify a copy, only the copy is changed.
这是重载函数。
例如,若有代码像
QByteArray bdata; bdata.duplicate(ptr, size);
可以把它重写成
QByteArray bdata; bdata = QByteArray(ptr, size);
注意: QByteArray uses implicit sharing so if you modify a copy, only the copy is changed.
使用 indexOf () 代替。
使用 indexOf () 代替。
使用 indexOf () 代替。
使用 indexOf () 代替。
使用 lastIndexOf () 代替。
使用 lastIndexOf () 代替。
使用 lastIndexOf () 代替。
使用 lastIndexOf () 代替。
使用 leftJustified () 代替。
使用 toLower () 代替。
使用 clear () 代替。
使用 rightJustified () 代替。
使用 simplified () 代替。
使用 trimmed () 代替。
使用 toUpper () 代替。