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 2 Next »

Unknown macro: {alias}

Name

qsetheaderlabels — set column headers in a QTreeWidget

Syntax

qsetheaderlabels [treewidget] headers

Description

The qsetheaderlabels command sets the columns headers in a qtreewidget. The labels must be provided as a Tcl list. The QTreeWidget may be given as the first argument, or else the current widget (assuming it is a QTreeWidget) will be used.

No items can be added to a treewidget before the header columns are in place.

Arguments

treewidget

Unknown macro: {indent}

A QTreeWidget that will have the columns headers.

headers

Unknown macro: {indent}

A Tcl list containing the header labels.

Examples

Ex.1: qsetheaderlabels

set w [qwidget]
qsetwindowtitle QTreeWidget
qvboxlayout {
	set tree [qtreewidget]
	qsetheaderlabels { File Path }
	qtreewidgetitem $tree { "File" c:/File } 1

}

qshow $w

See also qtreewidget for examples on how to use the qsetheaderlabels command.

Unknown macro: {pagebreak}
  • No labels