以下成員源於類 QWeakPointer 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
|
QWeakPointer (const QObject * obj ) |
(obsolete)
QWeakPointer<T> &
|
operator= (const QObject * obj ) |
創建
QWeakPointer
that holds a weak reference directly to the
QObject
obj
. 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
obj
. This function is only available if the template type
T
is
QObject
or derives from it.
該函數在 Qt 4.6 引入。
另請參閱 QPointer .