Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
{alias:qsetverticalheaderlabel}
h2. Name

*qsetverticalheaderlabel* — set row label in tablewidget

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*qsetverticalheaderlabel* \[_tablewidget_] _row text_

{panel}

h2. Description

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

To set a column header use [qsethorizontalheaderlabel]. 

h2. Arguments

_tablewidget_
{indent}An instance of [QTableWidget]. If this argument is not provided the current widget is used, assuming it is a table widget. 
{indent}

_row_
{indent}The row number containing the header.
{indent}

_text_
{indent}The header text.
{indent} 

h2. Examples

h3. Ex.1: qsetverticalheaderlabel
{anchor:qsetverticalheaderlabel}

{noformat:|borderWidth=1|bgColor=#eeeeee}

Name

qsetverticalheaderlabel — set row label in tablewidget

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

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

Anchor
qsetverticalheaderlabel
qsetverticalheaderlabel

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