[Qt] New qt patch - QAbstractScrollArea implemented

zeljko zeljko at holobit.net
Sat Jun 2 19:47:59 CEST 2007


On Saturday 02 June 2007 19:35, Den Jean wrote:
> On Saturday 02 June 2007 11:08:37 zeljko wrote:
> > QAbstractItemView_create() ... so where's constructor & destructor for
> > this
>
> cannot create class instance of a class with abstract functions.
>
> class Q_GUI_EXPORT QAbstractItemView : public QAbstractScrollArea
> ...
>     virtual QRect visualRect(const QModelIndex &index) const = 0;
>
> compile error:
>
> In function QAbstractItemView__* QAbstractItemView_create(QWidget__*):
> lib/qabstractitemview.cppb:17: error: cannot allocate an object of abstract
> type QAbstractItemView
> ../qt-x11-opensource-src-4.2.3//include/QtGui/../../src/gui/itemviews/qabst
>ractitemview.h:44: note:   because the following virtual functions are pure
> within QAbstractItemView:
> ../qt-x11-opensource-src-4.2.3//include/QtGui/../../src/gui/itemviews/qabst
>ractitemview.h:172: note:   virtual QRect
> QAbstractItemView::visualRect(const QModelIndex&) const

ooops, didn't read qt docs well .... ;)



More information about the Qt mailing list