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 ().