Change time and date settings manually
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:
And here for Windows:
I 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.