Obsolete Members for QObject

以下成员源于类 QObject 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QObject (QObject * parent , const char * name )

相关非成员

(obsolete) T qFindChild (const QObject * obj , const QString & name = QString())
(obsolete) QList<T> qFindChildren (const QObject * obj , const QString & name = QString())

成员函数文档编制

QObject:: QObject ( QObject * parent , const char * name )

此函数重载 QObject ().

创建新的 QObject 采用给定 parent and object name .

相关非成员

T qFindChild (const QObject * obj , const QString & name = QString())

此函数重载 qFindChildren ().

此函数相当于 obj -> findChild <T>( name ).

注意: 此函数是为不支持成员模板函数的 MSVC 6 提供的解决方案。建议在新代码中使用其它形式。

另请参阅 QObject::findChild ().

QList < T > qFindChildren (const QObject * obj , const QString & name = QString())

此函数重载 qFindChildren ().

此函数相当于 obj -> findChildren <T>( name ).

注意: 此函数是为不支持成员模板函数的 MSVC 6 提供的解决方案。建议在新代码中使用其它形式。

另请参阅 QObject::findChildren ().