Hello,

to find the index of a Widget from a QList, i do this:
Qt Code:
  1. QList<QPair<MyWidget*, int> > list
  2.  
  3. int i
  4. for(i=0;i<list.size();i++){
  5. if( list[i].first == mywidget )
  6. break;
  7. }
To copy to clipboard, switch view to plain text mode 

Is it possible to use indexOf() like this?

Qt Code:
  1. list.indexOf(T.first)
To copy to clipboard, switch view to plain text mode 

Thanks in advance