Obsolete Members for QCommandLineOption

以下成員源於類 QCommandLineOption 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) bool isHidden () const
(obsolete) void setHidden (bool hide )

成員函數文檔編製

bool QCommandLineOption:: isHidden () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Returns true if this option is omitted from the help output, false if the option is listed.

使用 flags () & QCommandLineOption::HiddenFromHelp

該函數在 Qt 5.6 引入。

另請參閱 setHidden () 和 QCommandLineOption::HiddenFromHelp .

void QCommandLineOption:: setHidden ( bool hide )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Sets whether to hide this option in the user-visible help output.

All options are visible by default. Setting hide to true for a particular option makes it internal, i.e. not listed in the help output.

使用 setFlags ( QCommandLineOption::HiddenFromHelp ), QCommandLineOption::HiddenFromHelp

該函數在 Qt 5.6 引入。

另請參閱 isHidden .