qt-string

QStringList QCoreApplication::arguments()
Returns the list of command-line arguments.
//返回命令行列表

QString QString::arg(const QString & a, int fieldWidth = 0, const QChar & fillChar = QLatin1Char( ’ ’ )) const
Returns a copy of this string with the lowest numbered place marker replaced by string a, i.e., %1, %2, …, %99.
//返回字符串的副本

bool QString::isEmpty() const
Returns true if the string has no characters; otherwise returns false.

QString::QStringLiteral(str)
The macro generates the data for a QString out of the string literal str at compile time.
宏在編譯時從字符串文字str中生成QString的數據。

QString QString::number(long n, int base = 10)
Returns a string equivalent of the number n according to the specified base.
//返回等價於數字n的字符串

QChar******
QChar::QChar(char ch)
Constructs a QChar corresponding to ASCII/Latin-1 character ch.
//構造一個Qchar

ushort & QChar::unicode()
Returns a reference to the numeric Unicode value of the QChar.
//返回數值

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章