signals and events

Bernd Gehrmann bernd at
Mon Apr 23 14:38:41 BST 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?

Add a signal doubleClicked() to your class declaration and reimplement
the event handler like

void MyWidget::mouseDoubleClickEvent(QMouseEvent *e)
  emit doubleClicked();


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