Hello, good afternoon,
I have a QMainWindow that creates a QWidget wA borderless with QWidget::setWindowFlags(Qt::ToolTip|)Qt::WindowStaysOnTopHint), wA redeploys void leaveEvent(QHideEvent *ev)
wA creates other two QWidget, wB and wC without edges with QWidget::setWindowFlags(Qt::ToolTip|)Qt::WindowStaysOnTopHint), and also redeploys void leaveEvent(QHideEvent *ev)
Then, QMainWindow creates and displays wA and wA creates and displays wB and wC.
QMainWindow launches wA when the mouse cursor passes over an edge of the desktop, and when the mouse cursor is outside of wA, and wB and WC, the QWidgets should hide but they are not hidden.
So the leaveEvent event is thrown, each of the three QWidget should before I click
I tried with activateWindow() and setFocus() but does not change the behavior.
Is this normal? As I can do to make the QWidgets be concealed without having to click on each one of them?
Thanks a lot.
Dario.
↧