And of course if you look at Qt's source code for qplaintextedit.cpp you can see the following in its private constructor:
Code:
viewport->setBackgroundRole(QPalette::Base);
q->setAcceptDrops(true);
q->setFocusPolicy(Qt::StrongFocus);
q->setAttribute(Qt::WA_KeyCompression);
q->setAttribute(Qt::WA_InputMethodEnabled);
q->setInputMethodHints(Qt::ImhMultiLine);
So much for the docs being correct!
I have pushed a fix to master for this. Drops from Drag and Drop will no longer be accepted in CodeView when editing.
This should prevent your random crashes on Windows.