PDA

View Full Version : Properties of QCalendarWidget class



imperator
11th November 2009, 16:27
Hi

I might be a bit thick, but I can't understand how to use the properties of the QCalendarWidget class.

I'd like to make use of firstDayOfWeek property to change default first day of week to monday. But I am not sure of the syntax to do it.

I'd also like to test shortDayNames as well, but not sure of the syntax in this case either.



QCalendarWidget cw = new QCalendarWidget;

cw->...


Any advice out there?

Regards,
André

spirit
11th November 2009, 16:38
read the doc about QCalendarWidget.

Lykurg
11th November 2009, 16:47
Do you have recognized the documentations? Or is your problem pure c++?


cw->setFirstDayOfWeek(Qt::Monday);


EDIT: Doh! forget to refresh:rolleyes:

imperator
12th November 2009, 21:42
Hi and thanks for the answers.

It was really not a problem, just a case of not reading the documentation properly.

But I've got a new question regarding the QCalendarWidget class. Is it possible to select week numbers in the same way as you select dates?

Regards,
André