signals and events

Roberto Alsina ralsina at conectiva.com.ar
Mon Apr 23 16:53:03 BST 2001


On Mon, 23 Apr 2001, Giorgi Lekishvili wrote:

> 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?

No, you don't need to write anything to create a signal, just declare it
in the header (and make sure moc runs as needed).

> 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«
> 

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina at conectiva.com.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Director técnico
  _..`-'_..-_/ /-'_.'           Conectiva SA
(l)-'' ((i).' ((!.'             Buenos Aires - Argentina
                                KDE Developer (MFCH)
Futuaris nisi irrisus ridebis. (Carlton, De rerum comoedia)


-
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