calendar = new QCalendarWidget; calendar->setMinimumDate(QDate(1900, 1, 1)); calendar->setMaximumDate(QDate(3000, 1, 1));
QTextCharFormat format; format.setFontWeight(QFont::Bold); format.setFontItalic(true); format.setForeground(Qt::green); calendar->setHeaderTextFormat(format);