QConstString Class

The QConstString class is a wrapper for constant Unicode string data. 更多...

頭: #include <QConstString>
繼承: QString

額外繼承成員

詳細描述

The QConstString class is a wrapper for constant Unicode string data.

In Qt 4, QConstString is replaced by QString::fromRawData (), a static function that constructs a QString object based on Unicode string data.

因為 QString::fromRawData () has slightly more stringent constraints than QConstString had in Qt 3, the new QConstString class takes a deep copy of the string data.

另請參閱 QString::fromRawData ().