[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Right clicking on applet on panel gets different events
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2009-12-31 18:21:03
Message-ID: 200912311021.04207.aseigo () kde ! org
[Download RAW message or body]

On December 30, 2009, Dong Tiger wrote:
> Hi,
> 
> The applet has a QWidget embedded through QGraphicsProxyWidget. When moved
> to a panel, the first several right clicking will trigger
> QGraphicsView::contextMenuEvent, which is expected. But
> after that, QGraphicsProxyWidget::mouseReleaseEvent will be triggered
> instead.  Here is the backtraces for the two different path. Any idea of
> that?

looking at the code in Qt, the event just gets passed from the widget itself. 
that implies to me that something somewhere is calling setContextMenuPolicy on 
the view and/or the embedded proxy widget with the wrong thing.

perhaps if you set a breakpoint on QWidget::setContextMenuPolicy it might turn 
something up, or just a grep through the code for setContextMenuPolicy might 
as well.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic