I'm using qt5.5.1 with qt-creator 3.5.1 and am trying to set a style on a GeoDataPlacemark with a GeoDataStyle. It used to work fine, but after the Marble update to use shared pointers instead of direct pointers, my program seg faults. Using GDB, I've traced the seg fault to the line where I create a QSharedPointer with the styleArch direct pointer. Does anyone have an idea what could be the issue?
My old code was as follows:
styleArch->setIconStyle( *icon );
place->setStyle( styleArch ); //Old Marble
The new code, which uses the new Marble API is as follows:
styleArch->setIconStyle( *icon );
place->setStyle(Marble::GeoDataStyle::Ptr( styleArch )); //New Marble
Thanks for your time!