Originally Posted by seim And if you derive your class A from some other class B, you should call B's constructor in A(): Qt Code: Switch view MyObject::MyObject() : QObject(){....} MyObject::MyObject() : QObject() { .... } To copy to clipboard, switch view to plain text mode actually that happens implicitly. if you want to call a non default base class constructor, you have to say so explicitly using that syntax.
MyObject::MyObject() : QObject(){....}
MyObject::MyObject() : QObject() { .... }
Last edited by wysota; 11th April 2009 at 23:33.
Forum Rules
Bookmarks