jthacker
28th April 2010, 07:43
hi guys,
i'm a Qt developer new to qt.
i'm using Qt 4.6.2
i'm working on xburst processor.
i have made one app which shows the Calender using QCalendarWidget.
but i have a problem that when i run this app it is not showing the Month name and Day name.
i have changed the HorizontalHeaderFormat for test . but still it is not showing the month ,day name
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
QWidget *widget = new QWidget;
QCalendarWidget * calendarWidget = new QCalendarWidget(widget);
calendarWidget->setObjectName(QString::fromUtf8("calendarWidget"));
QFont font;
font.setPointSize(30);
font.setFamily(QString::fromUtf8("Times"));
font.setBold(false);
calendarWidget->setFont(font);
//calendarWidget->setHorizontalHeaderFormat(QCalendarWidget::SingleL etterDayNames);
calendarWidget->setVerticalHeaderFormat(QCalendarWidget::NoVertica lHeader);
calendarWidget->setGridVisible(true);
calendarWidget->setNavigationBarVisible(true);
calendarWidget->resize(800,480);
widget->resize(800,480);
widget->move(0,0);
widget->setWindowFlags( widget->windowFlags() |Qt::FramelessWindowHint);
widget->show();
return app.exec();
}
plz help
thank you
i'm a Qt developer new to qt.
i'm using Qt 4.6.2
i'm working on xburst processor.
i have made one app which shows the Calender using QCalendarWidget.
but i have a problem that when i run this app it is not showing the Month name and Day name.
i have changed the HorizontalHeaderFormat for test . but still it is not showing the month ,day name
int main(int argc, char *argv[])
{
QApplication app(argc,argv);
QWidget *widget = new QWidget;
QCalendarWidget * calendarWidget = new QCalendarWidget(widget);
calendarWidget->setObjectName(QString::fromUtf8("calendarWidget"));
QFont font;
font.setPointSize(30);
font.setFamily(QString::fromUtf8("Times"));
font.setBold(false);
calendarWidget->setFont(font);
//calendarWidget->setHorizontalHeaderFormat(QCalendarWidget::SingleL etterDayNames);
calendarWidget->setVerticalHeaderFormat(QCalendarWidget::NoVertica lHeader);
calendarWidget->setGridVisible(true);
calendarWidget->setNavigationBarVisible(true);
calendarWidget->resize(800,480);
widget->resize(800,480);
widget->move(0,0);
widget->setWindowFlags( widget->windowFlags() |Qt::FramelessWindowHint);
widget->show();
return app.exec();
}
plz help
thank you