如何在qt 4.3中更改Q3Table的垂直标题列的宽度?
时间:2020-03-06 15:00:36 来源:igfitidea点击:
我正在使用Q3Table对象,并想更改垂直标题列的宽度。有谁知道如何做到这一点?看来我只能调整标题单元格的高度,而不能调整宽度。
解决方案
我们想使用Q3Table :: setLeftMargin。这将设置垂直标题的宽度。
void Q3Table::setLeftMargin ( int m ) Sets the left margin to be m pixels wide. The verticalHeader(), which displays row labels, occupies this margin.