title: How to get Qt widget type
body: <pre><code>a = QtGui.QLineEdit()   
  </code></pre>
  
  <p>Is there a way to query what Qt widget the variable <code>a</code> is?
  It appears some Qt widgets would be supplied with <code>.uiType</code> attribute. But some (like layouts) are not. </p>