Lilley
Lilley

Reputation: 234

PyQt QTreeWidget - SIGNAL 'clicked' from header

Is it possible to make the header item of a QTreeWidget clickable ? ( what would be the syntax if it is ? )

Upvotes: 0

Views: 776

Answers (1)

Avaris
Avaris

Reputation: 36715

Yes. setClickable method of the QHeaderView would be the way. You can get the QHeaderView by calling header() method of your QTreeWidget.

Upvotes: 2

Related Questions