QWidget::winID is the variable that I was thinking of! You can cast QWidtget::winID as a Xlib Window* and write the image to your heart's content. If I remember correctly then you can treat the "Drawable" as an array of Pixel's of the right color depth and map type (direct color, true color etc.).
----- Original Message ----- From: "Aaron J. Seigo" <[EMAIL PROTECTED]> Date: Monday, July 7, 2003 6:00 pm Subject: Re: (clug-talk) Need your guys advice > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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 =) > > - -- > Aaron J. Seigo > GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 > > KDE: The 'K' is for 'kick ass' > http://www.kde.org http://promo.kde.org/3.1/feature_guide.php > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) > > iD8DBQE/CgmP1rcusafx20MRAggvAJ9U/9q2xLdK4Kf++Eka1mBp4/RHGQCgkAdw > Pdbl7Rl/fyKbzdPS6uzlpeY= > =xASe > -----END PGP SIGNATURE----- >
