From kde-devel Fri Oct 23 09:08:58 2009 From: Oszkar Ambrus Date: Fri, 23 Oct 2009 09:08:58 +0000 To: kde-devel Subject: Re: Correct way of obtaining an icon Message-Id: <4AE172AA.8080906 () deri ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=125628901410887 Thomas Olsen wrote: > I must be missing something here. I have tried (Python syntax) the following > ways: > > And the Button still shows no icon. > > I'll probably be slapping my forehead when someone points out what I'm doing > wrong :-) > > I'm not sure what you're doing wrong, but I had similar problems a couple of weeks back, and in the end I just wrote (and it worked): buttonUp->setIcon(KIcon("arrow-up")); You might want to check that you have that icon in the theme that is currently selected (if your current theme is not Oxygen for example, it might not find anything - I had almost all of my icons in the oxygen folder). -- Oszkár Ambrus "Whoever believes in the Son [Jesus Christ] has eternal life" (John 3:36) Masters Student, Digital Enterprise Research Institute, NUIG [http://www.deri.ie] >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<