Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-05

QT Slots

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Baeseman, Cliff

That might lead to some interesting things happening. Inside of the toolkit I do not think I would ever try to connect
two event handlers to the same slot. Seems to me they did that for multithreading support?

Cliff

Earlier message 37 lines
-----Original Message----- From: Paul Gearon Sent: Sunday, May 23, 1999 9:23 PM To: '' Subject: RE: [lazarus] KCL and Open for Opinion <<snip>> > They also have a signal-and-slot mechanism (as found in Qt) > that could be adopted > to GTK, from what I saw. This would allow multiple slots for > 1 signal etc. > (i.e. multiple event handlers get triggered for the same event). It's probably OK, but I would be a little concerned about this. QT slots are not guaranteed to receive their signals in any particular order, whereas gtk signals ARE guaranteed to occur in the order in which they were connected. Most of the time this won't mean a thing, but every so often it might have real consequences. Or are my fears groundless? Regards, Paul Paul Gearon Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam. (Translation from latin: "I have a catapult. Give me all the money, or I will fling an enormous rock at your head.") _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael Van Canneyt
to Baeseman, Cliff
Cliff wrote
That might lead to some interesting things happening. Inside of the toolkit I do not think I would ever try to connect two event handlers to the same slot. Seems to me they did that for multithreading support?

No. But you may want several things to happen when for instance a user clicks a button.

Anyway, the implementation is such that the signals are sent to slots in the order that they were attached.

Michael.

Reply by email