[Qt-interest] No mouse relase event

Robert Escott robert at binarylogic.co.za
Fri Dec 17 11:54:21 CET 2010


Zhongmiao

 

What language are you using, this does not look like C++

 

From: qt-interest-bounces+robert=binarylogic.co.za at qt.nokia.com
[mailto:qt-interest-bounces+robert=binarylogic.co.za at qt.nokia.com] On Behalf
Of Zhongmiao Li
Sent: 17 December 2010 11:03
To: 
Subject: [Qt-interest] No mouse relase event

 

Hello everyone,

 

I display a widget inside another widget and I  inherited its  mouse event
handler

 

    public  void mouseMoveEvent(QMouseEvent e)

    {

        env.handleEvent(this, e);

    }

 

    public void mousePressEvent(QMouseEvent e)

    {

        env.handleEvent(this, e);

    }

 

    public void mouseReleaseEvent(QMouseEvent e)

    {

        env.handleEvent(this, e);

    }

 

However, the mouseReleaseEvent  is never trigged, while the other two is
working normally. So do you know what causes that problem? Thanks very much!


-- 

Best regards

Li Zhongmiao

Digital Media, College of Computer Science, Zhejiang University

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101217/81799409/attachment.html 


More information about the Qt-interest-old mailing list