Hello,
My app uses a QPlainTextEdit-derived widget to display some data. The user should be unable to interact with the data in any way.
Currently, in my widget's constructor, I have the following:
Qt Code:
setReadOnly(true); setTextInteractionFlags(Qt::NoTextInteraction);To copy to clipboard, switch view to plain text mode
This seems to restrict most interactions. However, if the widget has focus, it is still possible to use Ctrl+A to select all the data, then Ctrl+C to copy it to the clipboard.
Is this a bug, or normal behavior? (I use Qt 4.6 btw.)
More importantly, what is the best way to prevent this? The only thing I can think of is writing my own event filter, but that seems a bit overkill/brute-force for what I'm trying to accomplish.
Thanks in advance.
Bookmarks