[LC++]Re: - how do GUI-libs notify the program of changes?

Keith Schincke keith.schincke at gmail.com
Wed Apr 12 07:59:01 UTC 2006


Xlib also uses an event loop. The debate would be which is easier to
understand and which will give the lowest level of details.
The qt signal/slot system is easy to work with but xlib will require a
lot of low level knowledge.

Keith

On 4/11/06, Chris Vine <chris at cvine.freeserve.co.uk> wrote:
> On Monday 10 April 2006 14:07, Julien Claassen wrote:
> > Hi all!
> >   I'm currently working on a c++-GUI library and I wonder, how the GUI
> > tells the program that something changed.
> >   Simple scenario: I press a button or move a slider. I would want the
> > engine of the program to react directly.
> >   Can anyone help me? A pointer to well written tutorial for this problem
> > would suffice. Only: I'm not to bright a programmer, really!
> >   Kindest regards
> >       Julien
>
> You need to create an event loop.  The very simplest uses something like
> select() or poll() with a timeout.
>
> You may want to look at the glib or Qt event loops for some ideas.
>
> Chris
>
>
> _______________________________________________
> This is the Linux C++ Programming List
> : http://lists.linux.org.au/listinfo/tuxcpprogramming List
>
>
>




More information about the tuxCPProgramming mailing list