Qt TreeView 添加滚动条

QHeaderView* pHeader=this->header();
pHeader->setResizeMode(QHeaderView::ResizeToContents);
pheader->setStretchLastSection(false);


你可能感兴趣的:(qt)