Hello all,

I'd like to get a list of all (say) QPushButtons in my widget. I can get a list off all child ofjects using
Qt Code:
  1. QList<T> QObject::findChildren ( const QString & name = QString() ) const
To copy to clipboard, switch view to plain text mode 
or recursivly using
Qt Code:
  1. T QObject::findChild ( const QString & name = QString() ) const
To copy to clipboard, switch view to plain text mode 

how do I then test my <T>s to see if they are a specific type, i.e. QPushButtons?

thanks
K