[英]Change QCalendarWidget grid visibility/thickness
I would like to make the QCalendarWidget
grid visible. 我想使
QCalendarWidget
网格可见。 As far as I know the days part in a QCalendarWidget
is implemented as a QTableView
but I don't know how to modify the grid bar thickness of a QTableView
either. 据我所知,
QCalendarWidget
的日期部分是作为QTableView
实现的,但是我也不知道如何修改QTableView
的网格条厚度。 I would like it to look something like this: 我希望它看起来像这样:
Can anyone help? 有人可以帮忙吗?
Thank you! 谢谢!
From the first lines of the Qt documentation : 从Qt文档的第一行开始:
QCalendarWidget *calendar;
calendar->setGridVisible(true);
I'm so stupid.... 我真笨....
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.