Obsolete Members for Q3TabDialog

The following members of class Q3TabDialog are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) bool isTabEnabled(const char * name) const
(obsolete) void setTabEnabled(const char * name, bool enable)
  • 4 public functions inherited from QDialog
  • 7 public functions inherited from QWidget
  • 1 public function inherited from QPaintDevice

Member Function Documentation

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

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

If name is 0 or not the name of any of the pages, isTabEnabled() returns false.

See also setTabEnabled() and 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 uses QWidget::setEnabled() internally, rather than keeping a separate flag.

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 will show one of them.

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

See also isTabEnabled() and QWidget::setEnabled().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.