Is it possible to create some kind of QTimeEdit but with a start and end time, something like HH:mm – HH:mm? I want to put it in a table just like the QTimeEdit.
I already tried to set the format of a normal QTimeEdit to ‘HH:mm – HH:mm’ but then the hour and minute value for both hours is the same. I also tried using two QTimeEdits next to each other but I want to use it in one input field. The last thing I tried was customizing a QLineEdit with an inputmask but this still lets me use 99:99 which isn’t an hour. And I want the behaviour as close to the QTimeEdit as possible, so the cursorshape(it changes when I use the inputmask for some reason) has to stay the same and the selecting and typing rules should apply. what I mean is when I enter the custom input field the hour characters of the first time should be selected and if I type 5 for example it should go to the following minute part and select that. I tried but cannot find something like this anywhere on the internet so if anyone here could help me that would be great.
4