QCalendarWidget and text format
Hi,
is there a way to change the text format of dates that are diplayed in the calendar but are not part of the considered month ?
More precisely if the calendar currently displays the month May, is it possible to change the text format of the last days of April (top of the calendar) and the first days of June (bottom of the calendar) ?
Re: QCalendarWidget and text format
I'm also ok if I simply get rid of them. :)
But after having spent some time in reading the documentation, I still have not found anything yet...
Re: QCalendarWidget and text format
Take a look at the calendar widget example: link
If you change the text color, it only affects the current month.
Re: QCalendarWidget and text format
Yes I know that and this is precisely why I'm asking. Here is my problem:
I have a calendar in which there may be some dates (within a month) that are not selectable. To make it explicit I have changed the color of these dates in the calendar. Now when one looks at the calendar he might see three different colors for a date:
Dates in black are "available dates" (dates he can click on)
Dates in light grey are "not available dates" (dates he can click on, but nothing will happen then)
and finally
Dates in grey that are not within the current month
As these last dates might be selectable (or not), I would like them to be displayed in black or light grey and not in grey for obvious visibility reasons.
A third color adds useless complexity to the user and I would like to avoid that.
So now the question is: is there away to modify their text format ? If not is it simply possible to not display them ?
Re: QCalendarWidget and text format
Re: QCalendarWidget and text format
Have you found a solution for this problem? Or anybody else?