title: From QVariant to Integer and String
body: <p>The user's entered <code>value</code> can be both: a string or an integer.</p>
  
  <p><code>QAbstractTableModel</code>'s <code>setData()</code> method always gets this <code>value</code> as <code>QtCore.QVariant</code></p>
  
  <p><strong>Question</strong>:</p>
  
  <p>How to implement <code>if/elif/else</code> inside of <code>setData()</code> to distinguish if the received <code>QVariant</code> is a string or an integer? (so a proper <code>QVariant</code> conversion method (such as .toString() or toInt()) is used)</p>
  
  <p>P.s. Interesting that an attempt to convert <code>QVariant</code> toInt() results to a tuple such as: <code>(0, False)</code> or <code>(123, True)</code> </p>