qclear - clear widget contents

Name

qclear — clear widget contents

Syntax

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

The widget to be cleared. If this argument is omitted the current widget will be used.