Unsolved Change time and date settings manually
-
Hi,
I want to change the local time and date settings manually. For this i want to use a widget like that time edit and date edit, but how can i set the time and date with them? -
I'll need some extra information here:
- What is the aimed OS?
- Do you need it to be cross-platform?
- Will you share this code with people, or is it only a personal project?
-
OS is a debian., yes i need to cross compile. For the 3rd question , i just want to learn how to do it and it will be a personal project.
-
The question has already been discussed here for Linux:
https://forum.qt.io/topic/31115/solved-how-to-change-date-and-time-in-linux-system-based-from-qt-based-application/7And here for Windows:
http://stackoverflow.com/questions/3742880/change-system-date-on-windows-using-qtI don't know about Mac, but anyway, you will have to use #if.
Just to be clear, Qt is not meant to change time settings, you will have to use OS specific API.