Hi all,
For 2 days I'm fighting with QTextEdit to disable pasting. I disabled Ctrl+P by keyPressEvent().
I don't know how to grab Middle Mouse Button (linux shortcut fo paste).
Qt Code:
if(e->button()==(Qt::MidButton)){ qDebug()<<"middle"; e->accept(); return; }; };To copy to clipboard, switch view to plain text mode
When I use above it shows 'middle' but also takes default action (pastes text).
Any idea?
Bookmarks