From what I understand you locationUpdated() is a slot called from a signal from the position tracking source and you wish to be able to do some calculations based on the received position but not immediately after you get it but instead at some later point in time, correct?
If so, declare a variable in your class and in locationUpdated() (change the name of the slot, it's really weird) assign the position object you receive to the newly declared variable. Then in other methods you will be able to fetch the position value from the variable.





Reply With Quote


Bookmarks