Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
{alias:qclear}
h2. Name

*qclear* — clear widget contents

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

{panel}

h2. Description

The *qclear* command clears the contents of the widget. Acceptable widgets are [QComboBox], [QLineEdit], [QToolBar], [QTextEdit], [QSpinBox], [QDoubleSpinBox], [QMenu], QMenuBar, [QTreeWidget], [QTableWidget], and [QLabel]. 

See [Editor with clear button|ref:qtextedit - multiline text editor#Editor with clear button] for an example on how to clear a QTextEdit. 

h2. Arguments
_widget_
{indent}The widget to be cleared. If this argument is omitted the current widget will be used. 
{indent} 

{pagebreak}

Name

qclear — clear widget contents

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

qclear [widget]

Description

The qclear command clears the contents of the widget. Acceptable widgets are QComboBox, QLineEdit, QToolBar, QTextEdit, QSpinBox, QDoubleSpinBox, QMenu, QMenuBar, QTreeWidget, QTableWidget, and QLabel.

See Editor with clear button for an example on how to clear a QTextEdit.

Arguments

widget