Obsolete Members for QCursor

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

公共函数

(deprecated) QBitmap bitmap (Qt::ReturnByValueConstant) const
(deprecated) QBitmap mask (Qt::ReturnByValueConstant) const

成员函数文档编制

[since 5.15] QBitmap QCursor:: bitmap ( Qt::ReturnByValueConstant ) const

This function is deprecated. We strongly advise against using it in new code.

Use the overload without argument instead.

返回光标位图,或返回 null 位图若它是标准光标之一。

先前,Qt 提供版本的 bitmap() which returned the bitmap by-pointer. That version is now removed. To maintain compatibility with old code, this function was provided to differentiate between the by-pointer function and the by-value function.

该函数在 Qt 5.15 引入。

[since 5.15] QBitmap QCursor:: mask ( Qt::ReturnByValueConstant ) const

This function is deprecated. We strongly advise against using it in new code.

Use the overload without argument instead.

返回光标位图遮罩,或 null 位图若它是标准光标之一。

先前,Qt 提供版本的 mask() which returned the bitmap by-pointer. That version is now removed. To maintain compatibility with old code, this function was provided to differentiate between the by-pointer function and the by-value function.

该函数在 Qt 5.15 引入。