myTable->horizontalHeader()->setSectionResizeMode( 1, QHeaderView::Interactive );
myTable->horizontalHeader()->setSectionResizeMode( 2, QHeaderView::Interactive );
myTable->horizontalHeader()->setSectionResizeMode( 3, QHeaderView::Interactive );
- myTable->horizontalHeader()->setMinimumSectionSize( 50 );
-
myTable->verticalHeader()->setSectionResizeMode( QHeaderView::ResizeToContents );
+ const int default_size = 50;
+ myTable->horizontalHeader()->setMinimumSectionSize( default_size );
+ myTable->horizontalHeader()->resizeSection( 0, 300 );
+ myTable->horizontalHeader()->resizeSection( 1, 75 );
+ myTable->horizontalHeader()->resizeSection( 2, 75 );
+ myTable->horizontalHeader()->resizeSection( 3, 75 );
+
// Layout
// buttons
QHBoxLayout* aButtonsLayout = new QHBoxLayout();
myTable->setItem( aRow, 3, anItem );
}
- myTable->resizeColumnToContents( 0 );
+ //myTable->resizeColumnToContents( 0 );
myTable->resizeRowsToContents();
updateControls();