qsettext - set text in widget, tree item or table item

Name

qsettext — set text in widget, tree item or table item

Syntax

qsettext [widget] text

qsettext treewidgetitem column text

Description

The qsettext command sets the text in the given widget or qtreewidget item.

This command will replace any text already set in the widget.

Arguments

widget

Target widget. If not given the current widget is used. The widget must be one of qlabelqactionqpushbuttonqradiobuttonqcheckboxqtoolbuttonqlineeditqtextedit, or qtablewidgetitem.

text

The text to be set. If the text contains whitespace it must be delimited by "".

treewidgetitem

An instance of qtreewidgetitem.

column

Column in the qtreewidget in which the item text will be set.