Re: how to link library in Qt( like gcc -l command)
Quote:
Originally Posted by
dzh1121
You know, I had thought that since X11Event is virtual, we do not need to reimplement them.
Hmm... when some method is virtual it usually means it is meant to be reimplemented...
Quote:
And QWidget::x11Event() would have all the event type.
Only events that are meant for this particular widget will be forwarded to it. Of course unless the widget is alien, then it won't get any native events.
Quote:
BTW, should I inherit QApplication for my QMainWindow?(currently, it inherits from QWidget).
I will not answer this question but instead send you back to the docs to compare QApplication and QWidget classes and think whether one can substitute the other as a super class of QMainWindow.
Re: how to link library in Qt( like gcc -l command)
wysota,
Thanks for all your replies.
As I still did not figure how to receive the original Xlib event in Qt. ( It should be able to, but I just cann't work it out.)
As you said, x11EventFilter() maybe the reason.
Although I still did not make it.
Now, my current solution is using a C program to receive XEvent and send that event into a java client.( still stuck by a problem to find the WindowID of java GUI.)
But, anyway, thank again.
Thanks for all your effor, all your instruction and etc.
With regards.
Tiger