Results 1 to 4 of 4

Thread: Properties of QCalendarWidget class

  1. #1
    Join Date
    Nov 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Properties of QCalendarWidget class

    Hi

    I might be a bit thick, but I can't understand how to use the properties of the QCalendarWidget class.

    I'd like to make use of firstDayOfWeek property to change default first day of week to monday. But I am not sure of the syntax to do it.

    I'd also like to test shortDayNames as well, but not sure of the syntax in this case either.

    Qt Code:
    1.  
    2. cw->...
    To copy to clipboard, switch view to plain text mode 

    Any advice out there?

    Regards,
    André

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Properties of QCalendarWidget class

    read the doc about QCalendarWidget.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Properties of QCalendarWidget class

    Do you have recognized the documentations? Or is your problem pure c++?

    Qt Code:
    1. cw->setFirstDayOfWeek(Qt::Monday);
    To copy to clipboard, switch view to plain text mode 


    EDIT: Doh! forget to refresh

  4. #4
    Join Date
    Nov 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Properties of QCalendarWidget class

    Hi and thanks for the answers.

    It was really not a problem, just a case of not reading the documentation properly.

    But I've got a new question regarding the QCalendarWidget class. Is it possible to select week numbers in the same way as you select dates?

    Regards,
    André

Similar Threads

  1. Joomla 1.5 password hash Class 1.0 for QT using C++
    By RajabNatshah in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2009, 15:49
  2. Extending two class "the same way"
    By caduel in forum General Programming
    Replies: 3
    Last Post: 22nd July 2009, 22:55
  3. class QHBoxLayout
    By csvivek in forum Installation and Deployment
    Replies: 2
    Last Post: 10th April 2008, 07:57
  4. Saving properties of a QObject based class
    By ghorwin in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2007, 01:26
  5. Properties, MetaObjects, and Models
    By EricTheFruitbat in forum Qt Programming
    Replies: 3
    Last Post: 26th January 2007, 19:51

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.