Problem encountered in writing a class which extends QList

Mark Mclaren mclaren.mark at ssd.loral.com
Sat Mar 2 05:20:50 GMT 2002


Firstly, you need to define your Rule class constructor as

Rule::Rule(void) : QList(void) {
}

since you have derived from QList.


Dung Patrick wrote:
> 
> I need a new Class which extends QList. I have the following code but get error:
> 
> rule.h:
> #ifndef RULE_H
> #define RULE_H
> #include <qlist.h>
> 
> class Rule : public QList {
> public:
> Rule();
> ~Rule();
> };
> #endif
> 
> rule.cpp:
> #include "rule.h"
> Rule::Rule(){
> }
> Rule::~Rule(){
> }
> 
> --
> List archive and information: http://qt-interest.trolltech.com

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list