Hello,
to find the index of a Widget from a QList, i do this:
Qt Code:
QList<QPair<MyWidget*, int> > list int i for(i=0;i<list.size();i++){ if( list[i].first == mywidget ) break; }To copy to clipboard, switch view to plain text mode
Is it possible to use indexOf() like this?
Thanks in advance
Bookmarks