...
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.
...