Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:qaddtab}
h2. Name

*qaddtab* — add tab page to a QTabWidget

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}
*qaddtab* _tabwidget title_ \[_widget_]

{panel}

h2. Description

The *qaddtab* command adds a tabbed page to a [QTabWidget, also known as a notebook. A [QTabWidget] is created using the [qtabwidget] command. The tabbed page could be any widget, but is usually just a plain [QWidget]. 

h2. Arguments

_tabwidget_
{indent}The tabwidget, or notebook, that contains the tab pages. 
{indent}

_title_
{indent}The title text to appear on the tab, in the upper left corner. 
{indent}

_widget_
{indent}The widget that actually constitutes the tab page. If this argument is not provided, the current widget is used. 
{indent} 

h2. Examples

See [qtabwidget] for examples on how to use the *qaddtab* command. 


{pagebreak}