Thanks guys, > On Monday 07 July 2003 05:25, [EMAIL PROTECTED] wrote: > > I'm coming from memory on this so I may have details wrong (its been a > > couple of years). It seems to me that one of the methods of either QCanvas > > or Qwidget returns the X11 Window* pointer. If that's the case then use > > Aaron's suggestion of creating the class to wrap your code but let Qt > > create the window and get its pointer. Then you can use X11 to draw into > > the Window with the bitmap with your own drawing commands. > > QPaintDevice is probably what you're thinking of? QWidget, QPixmap, QPicture > and QPrinter all subclass from it. you can use QPaintDevice::handle() as well > as a bunch of the QPainDevice::x*() calls, as well as QWidget::winID() ... > you can grab the graphics context if necessary, etc... it gets (relatively) > messy, but that's the nature of Xlib =) >
I'm going to do more reading about it. And there's another thing that I'm worry about, As I mentioned, I used C to implement our previous program, can I still wrap it? or should I change something? (Pls forgive if this is a silly question) :-) Jane
