I have an apllication that need an object
the object type is QgsSymbolV2
but i cannot do that :
QgsSymbolV2 * lSymbol = new QgsSymbolV2();
because in the class qgssymbolv2 there is no constructor it is a pure static class, but in the old version ( qgsi 1.6 by example ) the class qgissymbol has 3 types of constructor with different parameters and a default constructor
so my idea is to build my class CMyQgisSymbol by exemple in order to add some fonction that my application needs but my class must be instanciate by a new and must be based or herit of the qgssymbolv2 class
i try this code : in my header file :
class CMyQgsSymbol : public QgsSymbolV2
{
public :
CMyQgsSymbol();
~CMyQgsSymbol();
}
in my source file :
lSymbol = new CMyQgsSymbol();
but when i build the code i have this error :
cannot allocate an object of abstract type
How can I proceed to create this object?