Getting a snapshot of a map

  • With QML 's maplugin I would like to get a snapshot of only the map. I have tried implementing the grebToImage method, but it return everything that is in the app's display, which inludes pushbuttons, toolbars, etc. I just want what the map displays. Is there such a way ?


  • Moderators

    did you call grabToImage() on the Map element only?!

  • That worked, At first I was getting a blank screen, and thought that was do to the Map being rendered in another thread, but the problem was when I tried to grab the snap shot. All is fine now thanks

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.