Results 1 to 3 of 3

Thread: QCalenderWidget doesn't show the month name and Day name.

  1. #1
    Join Date
    Mar 2010
    Location
    Ahmedabad, Gujarat
    Posts
    35
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QCalenderWidget doesn't show the month name and Day name.

    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

    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3. QApplication app(argc,argv);
    4.  
    5. QWidget *widget = new QWidget;
    6.  
    7. QCalendarWidget * calendarWidget = new QCalendarWidget(widget);
    8.  
    9.  
    10. calendarWidget->setObjectName(QString::fromUtf8("calendarWidget"));
    11.  
    12.  
    13. QFont font;
    14. font.setPointSize(30);
    15. font.setFamily(QString::fromUtf8("Times"));
    16. font.setBold(false);
    17.  
    18. calendarWidget->setFont(font);
    19. //calendarWidget->setHorizontalHeaderFormat(QCalendarWidget::SingleLetterDayNames);
    20. calendarWidget->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader);
    21. calendarWidget->setGridVisible(true);
    22. calendarWidget->setNavigationBarVisible(true);
    23. calendarWidget->resize(800,480);
    24.  
    25.  
    26. widget->resize(800,480);
    27. widget->move(0,0);
    28. widget->setWindowFlags( widget->windowFlags() |Qt::FramelessWindowHint);
    29.  
    30. widget->show();
    31.  
    32. return app.exec();
    33. }
    To copy to clipboard, switch view to plain text mode 



    plz help

    thank you

  2. #2
    Join Date
    Mar 2010
    Location
    Ahmedabad, Gujarat
    Posts
    35
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QCalenderWidget doesn't show the month name and Day name.

    anybody plz help?

  3. #3
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QCalenderWidget doesn't show the month name and Day name.

    Quote Originally Posted by jthacker View Post
    anybody plz help?
    calendar->navigationBarVisible(true);

Similar Threads

  1. Application running but doesn't show up!!!
    By joandelason in forum Newbie
    Replies: 4
    Last Post: 21st March 2010, 09:37
  2. Custom Widget doesn t show.
    By Frej in forum Qt Tools
    Replies: 12
    Last Post: 11th March 2010, 10:48
  3. QRubberBand doesn't show (X11/Linux)
    By QwertyManiac in forum Qt Programming
    Replies: 2
    Last Post: 29th October 2008, 22:58
  4. QStackedLayout doesn't show pages
    By C167 in forum Qt Programming
    Replies: 10
    Last Post: 25th January 2008, 13:34
  5. QSystemTrayIcon doesn't show icon ?
    By probine in forum Qt Programming
    Replies: 3
    Last Post: 25th January 2007, 19:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.