[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Beginners Problem: Problem with KPopupMenu*  helpMenu method
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2003-08-31 20:41:24
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 31 August 2003 02:02, Oliver D wrote:
> Hi Aaron,
>
> >>However, this gives me a compiler message that i don't understand
> >>    error: no matching function for call to `KMenuBar.:
> >
> >what's the full and exact error message? what line does it error out on in
> >your code?
>
> This is the full and exact error message.

well, no actually, it wasn't.. the exact error message was something like:

error: no matching function for call to `KMenuBar::
   insertItem(QString, KHelpMenu*&)'

sometimes error msgs span more than one line =) 

> 3:  top->menuBar()->insertItem( i18n("&Help"), help); // insert helpMenu
> in my top window

try:

	top->menuBar()->insertItem( i18n("&Help"), help->menu());

KHeplMenu isn't a menu, it's a QObject, that has a menu as a member. you may 
also want to try using XMLUI as that'll get you (among other things) a help 
menu for free:

	http://developer.kde.org/documentation/tutorials/xmlui/preface.html

HTH and happy hacking =)


- -- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/Ul111rcusafx20MRAmXcAJkBcCZCEMJHxRsq693Ki+vH7EeEIwCfcxe6
OSrQ+2kR2NdavpeUbOkYAB4=
=SZe1
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic