Obsolete Members for Q3TabDialog

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

公共函数

(obsolete) bool isTabEnabled (const char * name ) const
(obsolete) void setTabEnabled (const char * name , bool enable )

成员函数文档编制

bool Q3TabDialog:: isTabEnabled (const char * name ) const

Returns true if the page with object name name is enabled and false if it is disabled.

name is 0 or not the name of any of the pages, isTabEnabled () 返回 false。

另请参阅 setTabEnabled () 和 QWidget::isEnabled ().

void Q3TabDialog:: setTabEnabled (const char * name , bool enable )

Finds the page with object name name , enables/disables it according to the value of enable and redraws the page's tab appropriately.

Q3TabDialog 使用 QWidget::setEnabled () 在内部,而不是保持单独标志。

Note that even a disabled tab/page may be visible. If the page is already visible Q3TabDialog will not hide it; if all the pages are disabled Q3TabDialog 将展示它们之一。

The object name is used (rather than the tab label) because the tab text may not be invariant in multi-language applications.

另请参阅 isTabEnabled () 和 QWidget::setEnabled ().