Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:qclear}

Name

qclear — clear widget contents

...

The qclear command clears the contents of the widget. Acceptable widgets are QComboBox qcombobox, QLineEdit qlineedit, QToolBar qtoolbar, QTextEdit qtextedit, QSpinBox qspinbox, QDoubleSpinBox qdoublespinbox, QMenu qmenu, QMenuBar, QTreeWidget qtreewidget, QTableWidget qtablewidget, and QLabel 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.