Trying to use KSystemTray - and failing

J

jk

Newbe here :)

I am trying to get a pixmap to appear in my KDE system tray like
knotes, akregator etc. Cutting out a lot of code the key lines are ...

QPixmap mPixmap;
....
mPixmap = KSystemTray::loadIcon("/usr/share/icons/hicolor/16x16/apps/
konserve.png");
setPixmap(mPixmap);

It compiles OK but I end up with a white square on my system tray
rather than the png at usr/share/icons/hicolor/16x16/apps/konserve.png

Any ideas - probarbly something stupid - I am a newbe :)

Dave
 
R

red floyd

Newbe here :)

I am trying to get a pixmap to appear in my KDE system tray like
knotes, akregator etc. Cutting out a lot of code the key lines are ...
[redacted]
Any ideas - probarbly something stupid - I am a newbe :)
My idea is to ask in a newsgroup dedicated to your platform. See
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

The topic of this group is the C++ language as defined ISO/IEC 14882,
which says nothing about pixmaps or system trays.
 
I

Ian Collins

Newbe here :)

I am trying to get a pixmap to appear in my KDE system tray like
knotes, akregator etc. Cutting out a lot of code the key lines are ...
You should find a KDE/Qt list or group, this is off topic here.
 
L

Larry Smith

Newbe here :)

I am trying to get a pixmap to appear in my KDE system tray like
knotes, akregator etc. Cutting out a lot of code the key lines are ...

QPixmap mPixmap;
...
mPixmap = KSystemTray::loadIcon("/usr/share/icons/hicolor/16x16/apps/
konserve.png");
setPixmap(mPixmap);

It compiles OK but I end up with a white square on my system tray
rather than the png at usr/share/icons/hicolor/16x16/apps/konserve.png

Any ideas - probarbly something stupid - I am a newbe :)

Dave

Try this newgroup:

comp.windows.x.kde
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top