E.g. static_cast<>(). See http://www.cplusplus.com/doc/tutorial/typecasting/ for more information.
Can't check it right now, but for the text you want to be displayed use the Qt::DisplayRole and for the other data use Qt::UserRole as an argument for setData(). For a more precise answer you have to provide some code which don't work for you.2) I initially tried the QStandardItem::setData() approach, however the QListView then displayed the data rather than the string that I'd invoked setText() with. They're two separate things in this application. Does one override the other?
On the website for the certification they recommend some books and also search the forum. We have some thread about that issue. My favorite is still the book from Johan Thelin: Foundations of Qt Development.3) I see that you are a Nokia Certified Qt Developer. Could you advise me on what courses / books to study in order to achieve this accreditation too?
Bookmarks