In the Draggable Icons examples, there is a mouse press event with this code:

Qt Code:
  1. void DragWidget::mousePressEvent(QMouseEvent *event)
  2. {
  3. QLabel *child = static_cast<QLabel*>(childAt(event->pos()));
  4. ...
  5. }
To copy to clipboard, switch view to plain text mode 

How would I change it so that I can determine what class the object childAt(event->pos()) is? I looked at the QWidget documentation, and I couldn't find a function similar to something like getClass() or getObjectType(). Any help would be appreciated.