简体   繁体   English

更改QCalendarWidget网格可见性/厚度

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM