--===============0781830215== Content-Type: multipart/signed; boundary="nextPart3355161.N1zmDnooPE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3355161.N1zmDnooPE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I'm trying a direct port (from C++ to Java) of a simple KDE application wh= ich=20 just embeds an OpenSceneGraph component (implemented as a ReadOnlyPart). In C++ all is done easily, but in Java I'm in troubles when loading the=20 library through the KLibLoader, since it returns a QObject instead of a=20 ReadOnlyPart class instance :-| KLibFactory factory =3D KLibLoader.self().factory( "libosgviewerpart" ); // 1. Works ok, but I need a ReadOnly part since I need the part's widget // embedded as my main widget!! QObject part =3D factory.create( this, "osgviewer_part",=20 "KParts::ReadOnlyPart" ); // 2. This fails miserably since create() returns a QObject and java-casting // to a ReadOnlyPart gives only exceptions! ReadOnly part =3D factory.create( this, "osgviewer_part",=20 "KParts::ReadOnlyPart" ); // Set the main widget and create the GUI ... setCentralWidget( part.widget() ); createGUI(); If I stand with QObject, then I cannot set the widget: the main window show= s,=20 the part is loaded but what I guess to be the part's widget is just a small= =20 black rectangle sitting on top of the toolbar. So I guess that this must be accomplished in a different way, but what?=20 Another thing I noticed is the incomplete generation: I've discovered that= =20 KGlobal class doesn't exist while KStdAction has no method for showToolbar(= ),=20 while provides open(), quit(), keyBindings() and configureToolbars(). I'm using kdebindings-3.3.2 packages compiled by hand: could I've get=20 something wrong? I simply run make (no -jx) and it compiled without a glitc= h.=20 If it may matter I'm using Sun JDK 1.5.0.01 and eclipse 3.0.1. Please tell me if you need more info or have any advise. Regards Mario =2D-=20 Mario Scalas --nextPart3355161.N1zmDnooPE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBB7pRrkV6awv0nqNERAoYvAJ9GMihl8irm0JpyMMMdlsX2205NfwCeNSAG CFZDZctG0CKNdcosIKrVbbo= =kwv0 -----END PGP SIGNATURE----- --nextPart3355161.N1zmDnooPE-- --===============0781830215== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings --===============0781830215==--