[Qt-interest] QWidget::enterEvent and QWidget::leaveEvent

Samuel Baxter samuel857 at gmail.com
Mon Jun 1 07:04:53 CEST 2009


Hi Tony,

Thanks. A silly mistake indeed.

But writing
    void enterEvent(QEvent *) {
        mouse_is_inside = true;
    }
    void leaveEvent(QEvent *) {
        mouse_is_inside = false;
    }
does not help. When the mouse exits the window, the line continues to be drawn!

Samuel



More information about the Qt-interest-old mailing list