Show me code that for QTextEdit (pyside6) retrieves: current selection (as plain text) and cursor position before the selection