[Solved]QDateEdit - How to restrict user input ?
Hi all ,
How can i restrict the user input to QDateEdit ? How can i stop the user from changing the day, and at the same time , month and year can be changed.
Setting the Display Format to hide the day wasn't an exact solution in my case. Because i would like to show the date [dd/mm/yyyy] but edit only mm and yy part.
Have you tried subclassing the QDateEdit and reimplementing the validate() method?
No, should try.. Couldnt find any other work around..
You can also filter the events, check the current section and deny the input if needed.
Thank you Cyan and Lukas for the hints.
Found a little dirty work around : Upon the datechanged signal, resetting the day!