> QApplication::exec results in the Qt event loop starting which drives all
the
> Qt interface components (obviously =). this means Qt processes the X
events
> for its widgets (such as your main window). when you don't exec your
> QApplication, then the events aren't processed by Qt (and Qt widgets like
the
> menubar won't work) which allows them to get through to your widget.

>
> you could wrap your Xlib widget in a QWidget, or you could subclass
> QMainWindow (if you haven't already) and do manual event filtering within
it
> to pass events manually to your Xlib widget. manual event flitering is a
pain
> =)

yeah...that's what I was thinking...

 I shoul wrap my Xlib code into QWidget, then call this QWidget functions
through mainwindow class. Is that right?

But I need to pass the command line argument into xlib functions, how can I
do that?

> Better Thought
> ===========
> if you want good, free Qt support, i'd suggest subscribing to and posting
on
> the qt-interest email list. there are likely more Qt developers there than
on
> clug -talk ;-)

Thank you for advice.

Jane

Reply via email to