Obsolete Members for QSurfaceFormat

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

公共函数

(obsolete) void setOption (QSurfaceFormat::FormatOptions opt )
(obsolete) bool testOption (QSurfaceFormat::FormatOptions opt ) const

成员函数文档编制

void QSurfaceFormat:: setOption ( QSurfaceFormat::FormatOptions opt )

这是重载函数。

使用 setOption ( QSurfaceFormat::FormatOption , bool) or setOptions () 代替。

Sets the format options to the OR combination of opt and the current format options.

另请参阅 options () 和 testOption ().

bool QSurfaceFormat:: testOption ( QSurfaceFormat::FormatOptions opt ) const

这是重载函数。

使用 testOption ( QSurfaceFormat::FormatOption ) 代替。

返回 true if any of the options in opt is currently set on this object; otherwise returns false.

另请参阅 setOption ().