Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Unknown macro: {alias}

Name

qsetverticalheaderlabel — set row label in tablewidget

Syntax

qsetverticalheaderlabel [tablewidget] row text

Description

The qsetverticalheaderlabel command sets the header text for a given row in a QTableWidget.

To set a column header use qsethorizontalheaderlabel.

Arguments

tablewidget

row

text

Examples

Ex.1: qsetverticalheaderlabel

set w [qwidget]
qsetwindowtitle "Simple Table"
qvboxlayout {
	qtablewidget 2 3
	qsetverticalheaderlabel 0 "Row 1"
	qsetverticalheaderlabel 1 "Row 2"

	qsethorizontalheaderlabel 0 "First Name"
	qsethorizontalheaderlabel 1 "Last Name"
}

qshow $w

  • No labels