It should be.
What would not seem odd to you?Do I really have to check all those keycodes and let them though? This seems odd to me.
What is the purpose? What if I paste some text which is not composed from 0 and 1? Is it valid or not? If not, then you have to check the contents of the text edit each time it changes using the QTextDocument::contentsChange() signal and simply correct the changes you don't want. Note that you may wreck undo/redo with this though.I think that playing with the key codes it too low level for my purpose...
Bookmarks