title: How to use both setValidator() and setInputMask() for QLineEdit in Qt?
body: <p>I have a line edit where the user has to enter in the 12-hour time format. This is a touch based application and I have my own keyboard and this keyboard does not have the <strong><em>":"</em></strong> (colon) character. So, I am using an Input Mask for that purpose.  But I have only <code>setInputMask( 99:99 )</code> option which allows the user to enter any number whereas I have to restrict the user to the 12-hour format.</p>
  
  <p>I went through some examples with QRegexp but I couldn't have the ":" like in the Input Mask. Can anyone point me on how to implement?</p>