HeaderViewStretcher Class

(Utils::HeaderViewStretcher)

The HeaderViewStretcher class fixes QHeaderView to resize all columns to contents, except one stretching column. More...

Header: #include <HeaderViewStretcher>
Inherits: QObject

Public Functions

HeaderViewStretcher(QHeaderView *headerView, int columnToStretch)
void stretch()
  • 31 public functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The HeaderViewStretcher class fixes QHeaderView to resize all columns to contents, except one stretching column.

As opposed to standard QTreeWidget, all columns are still interactively resizable.

Member Function Documentation

HeaderViewStretcher::HeaderViewStretcher(QHeaderView *headerView, int columnToStretch)

Default constructs an instance of HeaderViewStretcher.

void HeaderViewStretcher::stretch()