Never mind, I forgot the static_cast<CustomMolecule *> term... Anyways, sorry for the emails...

Marc

Le 14 jun 2013 à 07:16, Marc-André Dubois <ma.dub...@me.com> a écrit :

Hi guys,
            I want to make a subclass of Avogadro::Molecule. Can I do that kind of association?

superclass: Molecule
subclass: CustomMolecule

Molecule *parent = gl->molecule();
CustomMolecule *child = parent; 

(gl is the GLWidget). I know this seems to be an easy question, but I face some problems and I am not so familiar with C++... Thanks,

Marc
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Reply via email to