[Qt] WidgetSet.AddEventHandler and friends

zeljko zeljko at holobit.net
Sat Feb 16 13:39:56 CET 2008


On Saturday 16 February 2008 13:23, Ales Katona wrote:
> I'm trying to implement WidgetSet.AddEventHandler and friends for Qt4
> widgetset so I can integrate lNet into the main loop of qt4 (make it
> watch my sockets).
>
> Now, I've found out QSocketNotifier at
> http://doc.trolltech.com/4.3/qsocketnotifier.htmlhttp://doc.trolltech.com/4
>.3/qsocketnotifier.html but I'm a bit confused about 2 things:
>
> 1. How is the QSocketNotifier tied to the qt main loop? (no need to
> register it? is it internally done?)
>
> 2. How to handle the "activated" signal? AFAIK adding handlers for these
> requires a C++ method?

Look at QEvent documentation:
QEvent::SockAct	50	Socket activated, used to implement QSocketNotifier.


> Thanks,
>
> Ales
> _______________________________________________
> Qt mailing list
> Qt at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/qt



More information about the Qt mailing list