Obsolete Members for QGlobalStatic

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

公共函数

(obsolete) QGlobalStatic::Type * operator() ()

成员函数文档编制

QGlobalStatic::Type *QGlobalStatic:: operator() ()

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

This function returns the address of the contents of this global static. If the contents have not yet been created, they will be created thread-safely by this function. If the contents have already been destroyed, this function will return a null pointer.

此函数相当于 operator Type * (). It is provided for compatibility with the private Q_GLOBAL_STATIC implementation that existed in Qt 4.x and 5.0. New code should avoid using it and should instead treat the object as a smart pointer.