QTableView列寬設置

    setModel(model);         horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);//所有列都擴展自適應寬度,填充充滿整個屏幕寬度       //horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents );//
相關文章
相關標籤/搜索