I have a successfully running application on a Ubuntu 20.0.4 machine with Qt 5.12.9 and Arcgis runtime lib 100.8. On the other hand after copying my app to a nearly same machine with only difference being the Qt version (5.12.8), it started not showing the elevation data. I don't get any errors while loading the raster elevation by the way. What am I missing
QStringList turkeyPath;
QDir dir("/home/fatma/srtm/");
dir.setSorting(QDir::Name);
QStringList fileList = dir.entryList(QDir::AllEntries);
for(int i = 0; i < fileList.size(); i++){
turkeyPath.append(dir.filePath(fileList.at(i)));
}
const bool srcElevationFileExists = QFileInfo::exists(turkeyPath.at(0));
if(srcElevationFileExists)
{
RasterElevationSource* elevationsrc=new RasterElevationSource{turkeyPath, mpMainCentralWidget};
//When the elevation source is finished loading, call the elevationSrcFinishedLoading callback, so we can tell if it loaded succesfully.
connect(elevationSrc, &RasterElevationSource::doneLoading, this, &MainMapWidget::elevationSrcFinishedLoading, Qt::UniqueConnection);
cout << "Enabled " << elevationSrc->isEnabled() << endl;
elevationSrc->setEnabled(true);
cout << "Enabled " << elevationSrc->isEnabled() << endl;
m_scene->baseSurface()->elevationSources()->append(elevationSrc);
}
?