You're welcome. If you just want the text use QString::trimmed():Qt Code:
text = cursor->selectedText().trimmed();To copy to clipboard, switch view to plain text mode
You're welcome. If you just want the text use QString::trimmed():Qt Code:
text = cursor->selectedText().trimmed();To copy to clipboard, switch view to plain text mode
Bookmarks