This code equally stretches each column so that they fit the table’s width.
table->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
Docs:
- QHeaderView::setSectionResizeMode
- See resize modes here.
This code equally stretches each column so that they fit the table’s width.
table->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
Docs: