Well that approach doesn't work either as the ContentTab::dragEnterEvent event handler is NEVER invoked at all (as shown by qDebug() output).
So normally a QWidget can prevent itself from being able to be dragged and dropped but this mechanism seems to be overridden either in the QTabBar or QTabWidget code someplace.
Since the dragEnterEvent event handler is never invoked we can not decide to either accept to ignore it.
So we will need to figure out something else.
By the way with the latest Qt 5.12.7 on macOS, the drag and drop of Tabs is much improved over the Qt 5.12.3 versions. It is not nearly as finicky anymore. So some platform specific changes must have made it into Qt since the Qt 5.12.3.
KevinH
|