Update:
It appears that QPlainTextEdit (CodeView) seems to default to setAcceptDrops(true) instead of the previously default false.
I literally had to add a setAcceptDrops(false); to the CodeViewEditor constructor to disable it.
Strange ....
Quote:
From the Qt 6.5 and Qt 5.15 docs:
acceptDrops : bool
This property holds whether drop events are enabled for this widget
Setting this property to true announces to the system that this widget may be able to accept drop events.
If the widget is the desktop (windowType() == Qt::Desktop), this may fail if another application is using the desktop; you can call acceptDrops() to test if this occurs.
Warning: Do not modify this property in a drag and drop event handler.
By default, this property is false.
Access functions:
bool acceptDrops() const
void setAcceptDrops(bool on)
See also Drag and Drop.
|
Kevin