I am building an app to download log files from a specific FTP platform, where I also want the user to be able to select start and stop dates in separate QDateTimeEdit widget. This will let the program choose the appropriate log files.
When users connect to the platform, the minimum and maximum datetime
s are set, based on the availability of the log files, which works fine, until the user tries to go a step up with the spinbox button from March 31st to April 1st, for example. The widget does not roll over to the next month.
Is there a property I am missing that enables or disables rollover?
Can I otherwise possibly insert custom python (3.6) code to create the rollover? My googling has yielded nothing but a custom C++ code from 2008 for a stepBy
which I can't read all that well.
Here is the XML version of the .ui file:
<widget class="QDateTimeEdit" name="timestart">
<property name="geometry">
<rect>
<x>510</x>
<y>155</y>
<width>126</width>
<height>22</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="displayFormat">
<string notr="true">yyyy-MM-dd HH:mm:ss</string>
</property>
</widget>
<widget class="QDateTimeEdit" name="timeend">
<property name="geometry">
<rect>
<x>510</x>
<y>205</y>
<width>126</width>
<height>22</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="displayFormat">
<string notr="true">yyyy-MM-dd HH:mm:ss</string>
</property>
</widget>
I realize enabling calendarPopup
is a workaround also but design wise I would rather not if I can find a pythonic way around the rollover issue.