[Qt-interest] QObject::sender() on (QMouseEvent * event)
Tom Panning
lurchvt at gmail.com
Fri Apr 17 13:43:42 CEST 2009
I'm sorry, I don't follow what you're asking for? I can think of two
ways to get a QMouseEvent:
1) Overriding QObject::mouseEvent() (or QObject::event()), which means
that the mouse event was directed at *this.
2) Installing an event filter and overriding QObject::eventFilter(),
in which case the QObject that the event was directed at is the first
argument to eventFilter().
If you weren't referring to one of these cases, can you provide more
description of what you're trying to do?
Tom
On Fri, Apr 17, 2009 at 7:15 AM, Frank Lutz <frank422542 at googlemail.com> wrote:
> Hi,
>
> little question, how can i take the QObject who the mouse (like
> QLineEdit) has worked?
>
> thank!
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list