Search code examples
qtqwidgetqtableviewqtabwidgetqtstylesheets

Change QCalendarWidget grid visibility/thickness


I would like to make the QCalendarWidget grid visible. 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. I would like it to look something like this:

enter image description here

Can anyone help?

Thank you!


Solution

  • From the first lines of the Qt documentation:

     QCalendarWidget *calendar;
     calendar->setGridVisible(true);
    

    I'm so stupid....