Thanks for the ideas, I got it working like this now:
bool myWidget::event(QEvent* e) { if(e->type() == QEvent::Leave) { QPoint view_pos(x(), y()); QPoint view_pos_global = mapToGlobal(view_pos); QPoint mouse_global = QCursor::pos(); if(mouse_global.x() < view_pos_global.x() || mouse_global.x() > view_pos_global.x() + width()) { closeMenu(); } else if(mouse_global.y() < view_pos_global.y() || mouse_global.y() > view_pos_global.y() + height()) { closeMenu(); } } return QWidget::event(e); }-
Unsolved Conditionally closing a dialog
QML and Qt Quick • • LorenDB -
Unsolved Button Text not readable
General and Desktop • • Qjay -
Solved Resize QListWidget
General and Desktop • • Jedd -
Unsolved Modal from a modal (Mac)
General and Desktop • • KevinD -
Unsolved CheckBox to QInputDialog..?
General and Desktop • • Rohith -
Solved Adding own UI to dialog
General and Desktop • • aney -
Unsolved Android soft keyboard action button
QML and Qt Quick • • morte