本文介绍了删除 QTablewidget 中的索引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何删除QTableWidget
中带有索引号的列?
How can I remove the column with index numbers in QTableWidget
?
推荐答案
不是很明显,有垂直和水平标题两个视图,它们定义在 QTableView
中,任何小部件都可以把它们隐藏起来
Not quite obvious, there are two views the vertical and the horizontal header, they are defined in QTableView
, as any widget you can hide them so its
myTableWidget->verticalHeader()->setVisible(false);
这篇关于删除 QTablewidget 中的索引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!