StretchHeaderView: Set default section size

As of Qt 6.6.1, style changes are resetting the column sizes. To prevent this, we set a default section size.

Fixes #1328
This commit is contained in:
Jonas Kvinge 2023-12-09 01:47:37 +01:00
parent 84c6e09c42
commit 135b93a5af
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ StretchHeaderView::StretchHeaderView(const Qt::Orientation orientation, QWidget
QObject::connect(this, &StretchHeaderView::sectionResized, this, &StretchHeaderView::SectionResized);
setMinimumSectionSize(kMinimumColumnWidth);
setTextElideMode(Qt::ElideRight);
setDefaultSectionSize(100);
}