signals and events

Roberto Alsina ralsina at
Mon Apr 23 13:33:15 UTC 2001

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?

Inherit the class.
Handle the event in the inherited.
When you have a doubleclick event, emit the signal.
Emitting a signal is not much different from calling a function.

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina at
 (_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 with the following body:
unsubscribe »your-email-address«

More information about the KDevelop mailing list