PDA

View Full Version : time and date issues


boog07005
4th January 2007, 01:02
this question probanly has more to do with my lack of knowledge than anything else, but the lack is real!
, I work for a railroad as a conductor and have been trying to produce a program thta will handle time card submittals in a complex work rule environment.

The problem is working with time calculations. Am I wasting my time tryng to use the time edit functons in QT since I don't know how to access the elements of the widgets ,or should I just set up fields for the user to enter hours and minutes. i.e , no spin boxes

munna
4th January 2007, 06:24
There are widgets like QTimeEdit (http://doc.trolltech.com/3.3/qtimeedit.html), QDateEdit (http://doc.trolltech.com/3.3/qdateedit.html) and QDateTimeEdit (http://doc.trolltech.com/3.3/qdatetimeedit.html) which you can use for all your time and date related inputs and then you can do all your calculations.

Brandybuck
4th January 2007, 08:59
The time and date spinboxes will QDate, QTime and QDateTime classes you can access. These will give you all the time information you need.