From kdevelop Mon Apr 23 15:54:05 2001 From: "Giorgi Lekishvili" Date: Mon, 23 Apr 2001 15:54:05 +0000 To: kdevelop Subject: RE: signals and events X-MARC-Message: https://marc.info/?l=kdevelop&m=98804124010213 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«