signals and events
Giorgi Lekishvili
gleki at gol.ge
Mon Apr 23 17:51:00 BST 2001
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 at barney.cs.uni-potsdam.de]On
> Behalf Of Bernd Gehrmann
> Sent: Monday, April 23, 2001 5:39 PM
> To: kdevelop at 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 at kdevelop.org with the following body:
> unsubscribe »your-email-address«
>
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list