Don't kill me for asking, but how do I implement it? The video didn't write anything else, the source code, QAbstractItemDelegate.cpp the body of the constructor is blank , it's just like that:
{
}
QAbstractItemDelegate::QAbstractItemDelegate(QObject *parent = 0)
{
}
To copy to clipboard, switch view to plain text mode
And now when I try to compile I get this other error:
F:/Documents/QT Projects/QListView_test/main.cpp:10: error: no matching function for call to 'QListView::setItemDelegate(ListDelegate&)'
F:/Documents/QT Projects/QListView_test/main.cpp:10: error: no matching function for call to 'QListView::setItemDelegate(ListDelegate&)'
c:\Qt\2009.05\qt\include\QtGui/../../src/gui/itemviews/qabstractitemview.h:135: note: candidates are: void QAbstractItemView::setItemDelegate(QAbstractItemDelegate*)
To copy to clipboard, switch view to plain text mode
Im trying to understand, doing my best. Thanks for your help.
Bookmarks