Extending Qt Creator Manual | HeaderViewStretcher

Extending Qt Creator Manual 4.6.2

# HeaderViewStretcher Class

(Utils::HeaderViewStretcher)

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

Header: | #include <HeaderViewStretcher>

- List of all members, including inherited members

## Public Functions

| HeaderViewStretcher(QHeaderView *headerView, int columnToStretch)
bool | eventFilter(QObject *obj, QEvent *ev) override
void | stretch()

## 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.

### bool HeaderViewStretcher::eventFilter(QObject *obj, QEvent *ev)

### void HeaderViewStretcher::stretch()