Ruchika Marda wrote: > Great article. Thanks Eskil!! > > I've been reading about QtJambiAWTBridge lately which allows > embedding AWT/Swing components into an existing Qt (Jambi) component. > > With regard to the same, is it possible to embed an AWT/Swing > component into a Qt (C++)component without using Jambi. This is > important because:
Yes, this should be possible... Take the code that makes up the AWT bridge and rewrite the very few pieces in it that are Qt Jambi dependent. The primary thing is reparenting the "heavy weight" AWT using its native window id to a QWidget which has an explicit window id (sub-widgets don't by default). This can be done using win32 API under windows and XEmbed on X11. Once you get that running its whole lot of hazzle getting focus to work, but the code is in the AWT bridge, so its just a matter of re-working it to your needs. - Gunnar _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
