--===============1557352961== Content-Type: multipart/signed; boundary="nextPart2037254.GM5Z8YsV2V"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2037254.GM5Z8YsV2V Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 26 November 2007, Lorenzo Bettini wrote: > Will Stephenson wrote: > > On Monday 26 November 2007, Lorenzo Bettini said: > > > > > >> but the menus added with menuBar()->insertItem are not shown at all... > >> > >> am I doing something wrong? > > > > This doesn't answer your question, but you really should use XMLGUI for > > setting up windows and toolbars like this. You don't have to bother wi= th > > the insertItem() tedium, just instantiate your actions and let the > > createGUI() call do the rest. The following rather old but still > > generally good tutorial explains it: > > > > http://developer.kde.org/documentation/tutorials/xmlui/preface.html > > actually I'm still using KDE 3, and I'd like to avoid using the .rc > file, since you need to install the application even for testing and I'd > like to avoid this (am I right about installation?) If you specify an absolute path to the .rc file in your code then it will w= ork=20 even without installing. But then you must remember to disable that for yo= ur=20 release versions (i.e. normal relative filenames) Also the .rc file is versioned, so if you change it and your application=20 doesn't reflect that change, either bump the version or, if you're testing= =20 it, it probably got copied to your ~/.kde/share/apps/.rc. Jus= t=20 remove that file and the new .rc file should be read. Regards, - Michael Pyne --nextPart2037254.GM5Z8YsV2V Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHSznhqjQYp5Omm0oRAo9PAJ9Zv2Axik/Zff2OzJvTRbDyG2YjvQCfd4fH ThQjj3gYPrMdcNtLrKwg+60= =x5zN -----END PGP SIGNATURE----- --nextPart2037254.GM5Z8YsV2V-- --===============1557352961== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1557352961==--