PDA

View Full Version : about QCalendarWidget



nifei
9th February 2009, 05:26
I want to subclass QCalendarWidget. By default 6 weeks are displayed in the calendar and I need to display the 5 weeks within the current month, that is to say, one week should be removed, how to do this?

Any suggestions would be appreciated greatly, thank you:)

wysota
9th February 2009, 08:24
The widget has a widget "QCalendarView inside it which is a subclass of QTableView. It also has QCalendarModel that is a regular Item Views model, so you might try to access it and apply a filter proxy between the model and the view. It has a chance to work.

nifei
9th February 2009, 09:17
The widget has a widget "QCalendarView inside it which is a subclass of QTableView. It also has QCalendarModel that is a regular Item Views model, so you might try to access it and apply a filter proxy between the model and the view. It has a chance to work.

Sadly QCalendarModel is not provided to users....