Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QTreeview sometimes shrinks first column on Solaris only (using 4.8.4)

$
0
0
I have a QTreeView with four columns. Sometimes, on the Solaris build, the first column shrinks to the width of the little tree-navigation buttons (those little buttons next to a row that expand the row to show its children). Just on the Solaris version. I call setStretchLastSection(false) after setting the model, as advised elsewhere, but it doesn’t seem to make a difference.     ui->projectExplorerTreeView->setModel(model.data());     ui->projectExplorerTreeView->header()->setStretchLastSection(false); I’d rather not have to manually force the first column to have a minimum size, as it’s very conceivable that the user might want to shrink the column size – it’s just very bad for it to happen by itself. Are there any other settings I could fiddle with that anyone knows of?

Viewing all articles
Browse latest Browse all 13965

Trending Articles