Trying to add the result of a QGeoSearchReply to a maps::DataProvider in Blackberry 10 Cascades (C++, QT & QML) -


i trying add result of qgeosearchreply maps :: dataprovider, , have found function called converttogeolist @ this site, , trying use it, documentation doesn't tell me class function part of - geo class doesn't seem exist in blackberry cascades. anyway - here code have come with:

void mapper::mapsearchresults(qtmobilitysubset::qgeosearchreply *reply)  {      disconnect(mapsearchmanagerengine_, signal(finished(qtmobilitysubset::qgeosearchreply*)),         this, slot(mapsearchresults(qmobilitysubset::qgeosearchreply*)));     maps :: dataprovider provider;     provider.add(bb :: platform::geo::converttogeolist(reply->places()));     maps::mapdata mapdata;     mapdata.addprovider(&provider);     mapview_->setmapdata(&mapdata);  } 

but end error: error: 'converttogeolist' not member of 'bb :: platform::geo'-

could please clarify how this?

you right: bb::platform::geo not class. it's namespace. regarding converttogeolist(), it's defined in bb/platform/geo/geo_converters.hpp. including should fix error:

bb/platform/geo/geo_converters.hpp 106:bb_platform_geo_export bb::platform::geo::geolist converttogeolist( const qlist src ); 122:bb_platform_geo_export bb::platform::geo::geolist converttogeolist( const qtmobilitysubset::qgeosearchreply* src );

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -