Home > Mobile >  QTimeEdit how to set up a step, and circulation to increase
QTimeEdit how to set up a step, and circulation to increase

Time:03-03

Currently QTimeEdit increase or reduce the step length is only 1 at a time, and increased to the maximum, and then press the up, there is no reaction, want to press it again from the beginning of the smallest,

QTimeEdit step how to set up long? Step 5, for example, press the up, add five at a time, press down on 5 less each time, and increased to the maximum, just start over, according to


In addition, every time update, in addition to judge value increase/decrease, how do I know if the signal is to press the up or down arrow?

CodePudding user response:

Start over Settings setWrapping (true) it is ok to
Step length is as not set, they inherited a subclass and then copy the void stepBy (int steps) ,
To judge from the plus or minus you can steps is up or down
  •  Tags:  
  • Qt
  • Related