HI
so rootItem is your "drop" widget?
Is the yellow on picture rootitem or the white one where mouse is? ( A=8 )
It does look correct so a bit odd.
and
void dragEnterEvent(QDragEnterEvent* event) Q_DECL_OVERRIDE;
should be called when u leave this small area.
I assume you are 100% sure that is not called and its not just
the change to while part that is failing.
I can't guess from this little code what could be wrong.sorry.
Just for test, could you run my editor and see it does indeed say
"drag leave" when u drag from the list on the left to center.
https://www.dropbox.com/s/ikra7pm161lzf56/DMDesigner.zip?dl=0