[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: adding a menu to a KMainApplication
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2007-12-28 17:11:02
Message-ID: 200712281811.12228.kevin.krammer () gmx ! at
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Friday 28 December 2007, Lorenzo Bettini wrote:
> Hi there
>
> I was using a similar code and it still didn't work... then I realized
> that in order for these instructions to work, they must be executed
> after the call to setupUI(), and now everything works and I have my menu
> :-)
>
> there's still a small problem: the menu is shown after the Help menu
> which is quite bad; I managed to insert it before Help by specifying the
> index, but if now the number of menus change I must make sure to
> re-insert it correctly... is there a better way to handle this?
Maybe this document can help you solve your problem:
http://developer.kde.org/documentation/library/kdeqt/kde3arch/xmlgui.html
See section "Dynamical menus"
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
["signature.asc" (application/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