PDA

View Full Version : QPaintercell for QCalendarwidget



ranjit.kadam
20th April 2011, 07:20
hello friends and Qt experts ,I want to know how to add a backgroubdimage to cell in QCalendarwidget,so please explain me how to do it..

can we use QTextCharformat class?


regards
ranjit

mcosta
20th April 2011, 07:42
Please, don't post multiple times the same question (http://www.qtcentre.org/threads/40794-Want-the-currentdate-in-QCalendarWidget-to-be-underlined).

However as I already said you, you have to implements a class inherited from QCalendarWidget and re-implement the virtual method QCalendarWidget ::paintCell.

In the previous post I suggested an implementation