QQuickItem::parentChanged(QQuickItem *parent) passes the *new* parent, not *this* Fixes #243 which is actually invalid, but uncovered this bug. For #243 you can just use sender(), or connect to a lambda that captures the dock widget.