From: Vincent Fourmond Date: 2007-01-16T04:14:46+09:00 Subject: Re: Qtruby - calling a C application Fredrik J wrote: > Hello all! > Here is a question for all you Qtruby experts: > > I am writing a GUI with Qtruby, which is working great. I am also using > some software written in C (RTP, http://web.cecs.pdx.edu/~watt/rtp/) > that is plotting data in Qt. Now - I would like to tell this C > application to use the main window that I have created in my Ruby code > instead of creating its own main window. But how on earth do I pass > this reference to my application written in C? I am guessing it is just > some index number telling which window it is (?) If I understand you right, you're running an external application and you would like your qtruby application to 'swallow' it ? (I use swallow, like in FvwmButton which is doing something of the like). Look at the QX11Embed documentation, you should find what you need. (it seems to me it's only Qt4, but I can't say for sure). Cheers, Vince -- Vincent Fourmond, PhD student http://vincent.fourmond.neuf.fr/