[Qt-interest] No mouse relase event

Zhongmiao Li mars.leezm at gmail.com
Fri Dec 17 13:33:13 CET 2010


Sorry, I forgot to mention that I'm using QtJambi.... This is Java

On Fri, Dec 17, 2010 at 2:54 AM, Robert Escott <robert at binarylogic.co.za>wrote:

>  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 <qt-interest-bounces%2Brobert>=
> 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
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>


-- 
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/a09a11e5/attachment.html 


More information about the Qt-interest-old mailing list