class CustomCalendarWidget : public QCalendarWidget{public: CustomCalendarWidget( QWidget* parent = 0 ) : QCalendarWidget( parent ) {} ~CustomCalendarWidget() {}protected: void paintCell( QPainter* painter, const QRect& rect, const QDate& date ) const { painter->setPen( Qt::black ); painter->drawText( rect, Qt::AlignCenter, tr("Qt by Nokia") ); //for example }};
..\Calendar_forum_v2\/customcalendarwidget.h:17: error: invalid use of incomplete type 'struct QPainter'..\..\..\NokiaQtSDK\Simulator\Qt\mingw\include/QtGui/qwindowdefs.h:68: error: forward declaration of 'struct QPainter'..\Calendar_forum_v2\/customcalendarwidget.h:18: error: invalid use of incomplete type 'struct QPainter'..\..\..\NokiaQtSDK\Simulator\Qt\mingw\include/QtGui/qwindowdefs.h:68: error: forward declaration of 'struct QPainter'