[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: popupmenu inside a KHTMLPart
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2004-01-22 19:57:00
Message-ID: 200401222057.00993.kevin.krammer () gmx ! at
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 22 January 2004 20:13, Abdalla S. Alothman wrote:
> On Thursday 22 January 2004 20:39, Kevin Krammer wrote:
> > How do you trigger the popup, I mean which event or signal do you
> > currently use to activate it?
>
> I'm using a mousePressEvent, i.e., mousePressEvent(QMouseEvent* e). In that
> method, I check if e->button() == Qt::RightButton and pop the menu.
The mousePressEvent of the container widget?
Did you try the KHTMLPart signal popupMenu(const QString&, const QPoint&)?
If it doesn't work, you could install your widget as an event filter on the
view's viewport of the second KHTMLPart and react on Events with type() ==
ContextMenu
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer@gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - Unix/Linux programming forum
www.qtforum.org - Qt programming forum
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic