Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Name

qsethorizontalheaderlabel — set column label in tablewidget

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

qsethorizontalheaderlabel [tablewidget] column text

Description

The qsethorizontalheaderlabel command sets the header text for a given column in a qtablewidget.

To set a row header use qsetverticalheaderlabel.

Arguments

tablewidget

An instance of qtablewidget. If this argument is not provided the current widget is used, assuming it is a table widget.

column

The column number containing the header.

text
The header text.

Examples

Ex.1: qsethorizontalheaderlabel

Anchor
qsethorizontalheaderlabel
qsethorizontalheaderlabel

No Format
bgColor#eeeeee
borderWidth1
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

{noformat}

!att:_img_cmd^tableheaders.png!

{pagebreak}

Image Added