Results 1 to 2 of 2

Thread: Change local date from system date in PyQt application

  1. #1
    Join Date
    Mar 2014
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Question Change local date from system date in PyQt application

    Hi!

    How to modify local date in PyQt application, that all objects in program should use local date (different from system date e.g. 10 days)?

    Regards.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Change local date from system date in PyQt application

    You can construct a QDate object for any day within its valid range and use that instead of QDate::currentDate()

Similar Threads

  1. Change date not working
    By sousadaniel7 in forum Qt Programming
    Replies: 18
    Last Post: 18th May 2012, 02:56
  2. How to change computer's Clock and Date
    By anafor2004 in forum Newbie
    Replies: 1
    Last Post: 24th October 2009, 16:18
  3. How to change the date and time of a system
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 23rd June 2009, 06:55
  4. How to default Date-Edit Widget to system date
    By JohnToddSr in forum Qt Tools
    Replies: 4
    Last Post: 17th January 2007, 20:18
  5. Minimum date change
    By fnmblot in forum Qt Programming
    Replies: 2
    Last Post: 16th August 2006, 22:22

Tags for this Thread

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.