QTableView setSortingEnabled后setStretchLastSection失效
ui->tableView->setSortingEnabled(true); ui->tableView->horizontalHeader()->setStretchLastSection(true);
ui->tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
版权声明:
作者:小何
链接:https://ligo100.cn/houduanjishu/qt/183.html
来源:小何博客
文章版权归作者所有,未经允许请勿转载。

共有 0 条评论