title: How to extract lat/long from a shape file programmatically?
body: <p>I successfully created an application using <strong>Qt</strong> and <a href="http://shapelib.maptools.org/" rel="nofollow">shapelib</a> library to open and display <strong><a href="http://www.wikiwand.com/en/Shapefile" rel="nofollow">shape files</a></strong>.   </p>
  
  <p>But now I want to get the <strong>latitude</strong> and <strong>longitude</strong> of every point under the mouse cursor. </p>
  
  <p>I don't know how to convert a point in pixel that is some thing like <code>(x, y)</code> to lat/log coordinates. </p>
  
  <p>Should I use <strong>.dbf</strong> file?  </p>
  
  <p>Any reference would be appreciated. thanks.</p>