Decreasing the size of QCalendarWidget

  • I have used the QCalendarWidget without difficulty in the past but now have an application where I need a more compact presentation. Decreasing the font size and eliminating the headers still leaves too much space for each date item. A trial of using just a QTableView allows me to size the cells appropriately but the QCalendarWidget does not expose the underlying view class.

    I tried using the ::item portion of the stylesheet for both the calendar widget and QTableView but it has no effect.

    The only option I see is to create a QTableView class and populate the model using some code pulled from the QCalendarWidget class but this seems a bit of a chore.

    I'm looking for something similar to the compact web calendar controls. Any suggestions would be greatly appreciated.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.