> I have a xlib implementation to show image on linux, we decided to use Qt
> toolkit to add widgets like menu bar, scroll bar ect.
> I've already created a Qt Gui window (qmainwindow, so I can add menu bar)
,
> and our image can be displayed in this window. (I get the winId of the Qt
> window, and use it in xlib  implementation), the problem is our operation
> control like move, key control, expose event can't be handled.
>
> when I use a.exec(), the Qt gui window shows with the image and menubar
but
> doesn't have operation control.
> If I don't have a.exec(), the image still shows in qt gui window,
operation
> control works but doesn't have menu bar.
>
> I didn't wrap my xlib code into QWidget, should I do that? and why?

Hi,
I've already wrapped my xlib code into QWidget.
but when I call these xlib functions from my main window QWidget, (in order
to show the image in the main window, I passed the winId of the main window
to xlib functions)
I still have the same problem,  Qt can't process the X events for its
widgets.

How can I find a way out?

Is there anybody can   give me any idea?

Thanks.

Jane

Reply via email to