title: Qt - Find 'Actual Widget' underneath 'viewport' at Coordinates
body: <p>My Qt program uses a system of retrieving widget objectNames when clicked, by finding the coordinates of mousePressEvents and then finding the child widget (or the Window) at those coordinates.  </p>
  
  <p>This works perfectly for most widgets, but does not for the following widgets;<br>
  QScrollBox, QTableWidget, QGraphicsView, QTextEdit, QSpinBox.  </p>
  
  <p>These widgets (except QSpinBox) return 'qt_scrollarea_viewport' instead of their objectName, presumably because that is a child widget of those listed above.  </p>
  
  <p>Eg:<br>
  You have a QTextEdit with geometry (0,0,50,50).<br>
  Obviously the coordinates (10,10) are 'on' this widget.<br>
  Yet, calling <code>parent.childAt( (10,10) )</code> does not return the QTextEdit.<br>
  Calling <code>.objectName()</code> shows that this instead is a 'qt_scrollarea_viewport'.</p>
  
  <p>If you had twenty different QTextEdits with twenty different object names, they'd all still return 'qt_scrollarea_viewport'.</p>
  
  <p>So, how do I retrieve the actual objectName of the QTextEdit, and not it's graphical child widget (which is what I interpret a 'viewport' to be), given I have the coordinates of the widget?</p>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>PyQt4<br>
  Python 2.7.2<br>
  Windows 7</p>