Hi!

I am porting custom widget plugins for Qt Designer from Qt3 to Qt4.
I managed to solve all errors except one.
I have a PURE VIRTUAL function which is not implemented:
Qt Code:
  1. virtual void paintRow( Q3Painter *p, const QColorGroup &cg, int row, CRow *pRow ) = 0;
To copy to clipboard, switch view to plain text mode 

In my plugin class:

Qt Code:
  1. QWidget *CLargeListPlugin::createWidget(QWidget *parent)
  2. {
  3. return new CLargeList(parent);
  4. }
To copy to clipboard, switch view to plain text mode 
It says:

>.\largelistplugin.cpp(61) : error C2259: 'CLargeList' : cannot instantiate abstract class
> due to following members:
> 'void CLargeList:: paintRow(Q3Painter *,const QColorGroup &,int,CRow *)' : is abstract
>d:\projcomp\qt\largelist\largelist.h(122) : see declaration of 'CLargeList:: paintRow'
I have tried this and it works:
Qt Code:
  1. virtual void paintRow( Q3Painter * /*p*/, const QColorGroup & /*cg*/, int /*row*/, CRow * /*pRow*/ ) { ; }
To copy to clipboard, switch view to plain text mode 
but when i want to use my plugin in a test application i get an unresolved external simbol error.


How can i create a working plugin?

I am looking forward for your help.
Thank you.