Hi to all,
I try to change a colour of a date and also a date cell background and achieved, as in the example, only this:
...
formater := oDlg:calendarWidget:weekdayTextFormat(Qt_Saturday)
oDlg:calendarWidget:setDateTextFormat(QDate( Year( MyDate ), Month(
MyDate ), Day( MyDate )), formater)
...
to colour the cell text with red since in the example is used the format of saturday.
Googling I tried
formater:setForeground( QBrush( QColor( 49,196,98 ) ) )
formater:setBackground( QBrush( QColor( 219,177,38 ) ) )
formater:setBackground( QBrush( Qt_magenta ) )
but there is no effect on the date or the cell background either.
The code
formater:setBackground( Qt_magenta )
formater:setBackground( 0, QBrush( Qt_green ) )
returns an error on runetime as wrong argument.
Anyone knows what I have missed?
Thanks
Zoran