[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: RE: signals and events
From: "Giorgi Lekishvili" <gleki () gol ! ge>
Date: 2001-04-23 15:54:05
[Download RAW message or body]
Thank you very much for the hint. Please, one more question:
Do I need to write the body of the signal function "doubleclicked()"? And if
yes, how?
Thank you very much for your time.
Best wishes,
Giorgi
> -----Original Message-----
> From: Mailing list agent [mailto:mdom@barney.cs.uni-potsdam.de]On
> Behalf Of Bernd Gehrmann
> Sent: Monday, April 23, 2001 5:39 PM
> To: kdevelop@kdevelop.org
> Subject: Re: signals and events
>
>
> On Mon, 23 Apr 2001, Giorgi Lekishvili wrote:
>
> > Dear all,
> > I'm afraid I do not understand properly how to connect signals
> with events
> > (not with slots).
> > Suppose an object I use has the public signal "Clicked()".
> However, I may
> > need a signal "DoubleClicked()". How can I define and build
> this function
> > based on "ouseButtonDblClick" event?
>
> Add a signal doubleClicked() to your class declaration and reimplement
> the event handler like
>
> void MyWidget::mouseDoubleClickEvent(QMouseEvent *e)
> {
> QWidget::mouseDoubleClickEvent(e);
> emit doubleClicked();
> }
>
> Bernd.
>
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request@kdevelop.org with the following body:
> unsubscribe »your-email-address«
>
-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic