以下成員源於類 QObject 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
void
|
dumpObjectInfo () |
(obsolete)
void
|
dumpObjectTree () |
(obsolete)
QList<T>
|
findChildren (const QRegExp & regExp , Qt::FindChildOptions options = Qt::FindChildrenRecursively) const |
(obsolete)
QString
|
trUtf8 (const char * sourceText , const char * disambiguation = nullptr, int n = -1) |
(obsolete)
T
|
qFindChild (const QObject * obj , const QString & name = QString()) |
(obsolete)
QList<T>
|
qFindChildren (const QObject * obj , const QString & name = QString()) |
(obsolete)
|
Q_ENUMS ( ... ) |
(obsolete)
|
Q_FLAGS ( ... ) |
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
這是重載函數。
將有關此對象的信號連接等信息轉儲到調試輸齣。
另請參閱 dumpObjectTree ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
這是重載函數。
將子級樹轉儲到調試輸齣。
另請參閱 dumpObjectInfo ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此函數重載 findChildren()。
返迴此對象的子級,可以被鑄造成 T 類型且擁有的名稱匹配正則錶達式 regExp ,或空列錶若沒有這種對象。遞歸履行搜索,除非 options 指定 FindDirectChildrenOnly 選項。
Use the findChildren overload taking a QRegularExpression 代替。
[static]
QString
QObject::
trUtf8
(const
char
*
sourceText
, const
char
*
disambiguation
= nullptr,
int
n
= -1)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
返迴翻譯版本的 sourceText ,或 QString::fromUtf8 ( sourceText ) if there is no appropriate version. It is otherwise identical to tr( sourceText , disambiguation , n ).
警告: 此方法纔可重入若有安裝所有翻譯器 before 調用此方法。不支持在履行翻譯時,安裝或移除翻譯器。這樣做可能會導緻崩潰或其它不期望行為。
警告: For portability reasons, we recommend that you use escape sequences for specifying non-ASCII characters in string literals to trUtf8(). For example:
label->setText(tr("F\374r \310lise"));
另請參閱 tr (), QCoreApplication::translate (),和 Qt 國際化 .
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此函數重載 qFindChildren ().
此函數相當於 obj -> findChild <T>( name ).
注意: 此函數是為不支持成員模闆函數的 MSVC 6 提供的解決方案。建議在新代碼中使用其它形式。
另請參閱 QObject::findChild ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
此函數重載 qFindChildren()。
此函數相當於 obj -> findChildren <T>( name ).
注意: 此函數是為不支持成員模闆函數的 MSVC 6 提供的解決方案。建議在新代碼中使用其它形式。
另請參閱 QObject::findChildren ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
In new code, you should prefer the use of the Q_ENUM () macro, which makes the type available also to the meta type system. For instance, QMetaEnum::fromType () will not work with types declared with Q_ENUMS().
This macro registers one or several enum types to the meta-object system.
If you want to register an enum that is declared in another class, the enum must be fully qualified with the name of the class defining it. In addition, the class defining the enum has to inherit QObject as well as declare the enum using Q_ENUMS().
另請參閱 Qt 的特性係統 .
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
This macro registers one or several flags types with the meta-object system. It is typically used in a class definition to declare that values of a given enum can be used as flags and combined using the bitwise OR operator.
注意: This macro takes care of registering individual flag values with the meta-object system, so it is unnecessary to use Q_ENUMS () 除此宏外。
In new code, you should prefer the use of the Q_FLAG () macro, which makes the type available also to the meta type system.
另請參閱 Qt 的特性係統 .