title: How to find global position of text cursor?
body: <p>I would like to execute a <a href="http://qt.nokia.com/doc/4.0/qmenu.html" rel="noreferrer"><code>QMenu</code></a> object at the position of text cursor in a <a href="http://doc.trolltech.com/main-snapshot/qplaintextedit.html" rel="noreferrer"><code>QPlainTextEdit</code></a>. My problem is that <a href="http://doc.trolltech.com/4.2/qtextcursor.html" rel="noreferrer"><code>QTextCursor</code></a> is only define by its position in the Text (index of the character).</p>
  
  <p>How can I find global position of the <code>QTextCursor</code>? Should I use an other object than <code>QTextCursor</code> in order to find the position of the text cursor where I want to open my <code>QMenu</code>?</p>
  
  <p>Thank you by advance.</p>