PDA

View Full Version : How to increase size of the header lable in QTreeView



grsandeep85
21st October 2009, 10:53
Hi All,

I have the treeeView which has 4 columns now the header label has set according to the string length but now i need to increase the size of the header label. How to do this and here is my code snippet



model = new QStandardItemModel( this );
model->setHorizontalHeaderLabels( QStringList() << "TOOL NUMBER" << "DIAMETER" << "LENGTH" << "UNITS" );
tooltreeView->setModel( model );

aamer4yu
21st October 2009, 10:59
QTreeView::header


QHeaderView::setDefaultSectionSize