PDA

View Full Version : Draw UI on the X11 window



iddqd
16th November 2011, 05:41
I'm trying to create a X11 windows and draw QPixmap on it (and also handle events such as mouse click).
Window is created through using XCreateWindow() in the constructor of class wich is derived from QApplication. But how to place X11 events handler in the overrided X11EventFilter()?
After creating windows I'd like to draw on that X11 window through using QPainter and QPixmap::fromX11Pixmap() for getting window image.
Could anyone provide an example of described algo or tell me how to make it work?
Thanks.