after calling:
Qt Code:
myTextEdit -> setReadOnly(true);To copy to clipboard, switch view to plain text mode
you need to set the flag
Qt Code:
myTextEdit -> setTextInteractionFlags(myTextEdit -> textInteractionFlags() | Qt::TextSelectableByKeyboard);To copy to clipboard, switch view to plain text mode
because setReadOnly() doesnt enable that flag
Bookmarks