diff --git a/src/widgets/StringsWidget.cpp b/src/widgets/StringsWidget.cpp index 290c3af7..3fd5f039 100644 --- a/src/widgets/StringsWidget.cpp +++ b/src/widgets/StringsWidget.cpp @@ -214,10 +214,8 @@ StringsWidget::StringsWidget(MainWindow *main) }); auto header = ui->stringsTreeView->header(); - header->setSectionResizeMode(QHeaderView::ResizeMode::ResizeToContents); - header->setSectionResizeMode(StringsModel::StringColumn, QHeaderView::ResizeMode::Stretch); - header->setStretchLastSection(false); - header->setResizeContentsPrecision(256); + header->setSectionResizeMode(QHeaderView::ResizeMode::Interactive); + header->resizeSections(QHeaderView::ResizeMode::Stretch); } StringsWidget::~StringsWidget() {}