Using QML map + osm not working?

It is very old Qt that we use and you read Qt 5.15 manual. Search for manuals for Qt 5.6 (or maybe even 5.4 for Maps component).