QLayoutItem widget() method looks like it does what you need, but i never used it so you should test it and see if it helps.
Another way is to keep pointers to CardGui into some data structure (like QVector<CardGui*> or if you like QVector<QVector<...) this won't be such and overhead and you can then access every widget very easy.




Reply With Quote

Bookmarks