ok so, QListWidget inherits QListView..QListView inherits QAbstractItemView which is the base class of all views..QAbstractItemView provides many functions that'll allow u modify your view at the basic level..u can do what u want in a number of ways.
Qt Code:
QModelIndex modelIndex = list->rootIndex(); // u have to find the model index of the first item here list->setCurrentIndex(modelIndex);To copy to clipboard, switch view to plain text mode
before going further ahead, give a read to http://doc.trolltech.com/4.4/model-v...roduction.html just an hour of reading this will give u a lot of information about mvc in qt
Bookmarks