i have written the following code, for QListView, and now i want to add data to the QListView. But the addColumn method is giving an error,
'addColumn' : is not a member of 'QListView'
Also, there is a "syntax error : identifier QListViewItem"
this is my code:
QListView *list = new QListView(this);
list->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn) ;
list->addColumn("name");
list->setAllColumnsShowFocus(true);
new QListViewItem(list,"myname1");
I have included qlistview.h..
Bookmarks