Qt

QDeclarativeItem::hasActiveFocus() returns true when item does not have focus