How would I know the cursor position where the mouse is Double clicked (or) simply clicked in a textedit . I have tried it with getCursorPosition(), but it was of no use.