I want to use both InputMask and Validator to get date in the correct form. In the code below I am using InputMask to receive date in format DD.MM.YYYY. I do not know how to limit each part of it (DD, MM and YYYY) because now user can type 40.30.2020 and it is theoretically correct.
self.date = QLineEdit(self)
self.date.setInputMask("00.00.0000")