View Full Version : QTimeEdit maximum time to 24h (24:00:00)
doijunior
25th February 2010, 12:32
I need a QTimeEdit where I can put the time of usage of some item in a day, so the maximum time must be 24:00:00, but the setMaximumTime don't do this because it's is considered an invalid value. There is a way to do this?
I already tried overloading the class but when I overload setMaximumTime I can acess the property to change it...
mrvk
25th February 2010, 12:52
The maximum time that can be set for the QTimeEdit is 23:59:59 and 999 milliseconds.
But if you wish to customize it, try to override the 'validate' protected method.
doijunior
26th February 2010, 11:26
Well that is the biggeest problem, I can find which is the method that validates the value
mrvk
26th February 2010, 11:50
You have the validate method of base class, QDateTimeEdit as defined below.
QValidator::State QDateTimeEdit::validate ( QString & text, int & pos ) const [virtual protected]
You can try to override this method.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.