Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Set a date range of selectable days for a whole year regardless of what the current year is using the QCalendarwidget
I'm trying to determine the best way to set a date range based on what the user entered and has been saved to a file for future reference. In other words I want to set a range of selectable days for a whole year regardless of what the current year is, for instance, if the user entered date 01-02-2011, I want the selectable days to be from 01-02-2013 to 01-02-2014.
What would be the best way to accomplished what I'm describing above?
Thanks a lot.
You might be interested by Andre's "QTimeSpan":https://gitorious.org/qtimespandevel
Thank you for your reply.
I downloaded the class you suggested but it looks like it hasn't been converted to work with Qt5 since I got a bunch of errors when I tried to run the test qtimespan.
Apparently things like the one I'm trying to do, don't have an easy solution with the existing classes availables in Qt, correct? I will look into QTimeSpan a little more and see if I can make it work in Qt5.
Thanks a lot
AFAIK Andre wants to get it in Qt 5 but I don't know he's roadmap
Oh, that would be cool I hope that eventually happens. Thanks a lot for your help!
It should yes.
You're welcome !