以下成员源于类 QWeakPointer 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
|
QWeakPointer (const QObject * other ) |
(obsolete)
QWeakPointer<T> &
|
operator= (const QObject * other ) |
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
创建
QWeakPointer
that holds a weak reference directly to the
QObject
other
. This constructor is only available if the template type
T
is
QObject
or derives from it (otherwise a compilation error will result).
You can use this constructor with any QObject , even if they were not created with QSharedPointer .
Note that QWeakPointers created this way on arbitrary QObjects usually cannot be promoted to QSharedPointer .
该函数在 Qt 4.6 引入。
另请参阅 QSharedPointer and QPointer .
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
Makes this
QWeakPointer
hold a weak reference directly to the
QObject
other
. This function is only available if the template type
T
is
QObject
or derives from it.
该函数在 Qt 4.6 引入。
另请参阅 QPointer .