[Panel-devel] Setting the icon for a menuext

Vinay Khaitan vkhaitan at gmail.com
Mon Jul 31 21:08:20 CEST 2006


I think, there is a hackish way.
A menuext knows about its  parent. And also that, Qt Object framework
provided a way to search for required child by its name.
So, find out the the name of the child icon widget. I suppose it
should be something related to .desktop file. The after getting the
pointer, you can easily change the icon.


On 7/31/06, Aaron J. Seigo <aseigo at kde.org> wrote:
> On Monday 31 July 2006 4:03, Sion Dafydd wrote:
> > I'm writing a menuext for the panel, but I want to change the icon which
> > is displayed on the panel from within my code, can anybody give me any
> > pointers as to how to achieve this?
>
> you can't. one of the limitations of the design of the menuext facility.
>
> --
> Aaron J. Seigo
> Undulate Your Wantonness
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
>
>
> _______________________________________________
> Panel-devel mailing list
> Panel-devel at kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel
>
>
>
>


More information about the Panel-devel mailing list