title: How to set Input Mask and QValidator to a QLineEdit at a time in Qt?
body: <p>I want a line edit which accepts an ip address. If I give input mask as:</p>
  
  <pre><code>ui-&gt;lineEdit-&gt;setInputMask("000.000.000.000");
  </code></pre>
  
  <p>It is accepting values greater than 255. If I give a validator then we have to give a dot(.) after every three digits. What would the best way to handle it?</p>