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

List:       kde-devel
Subject:    Re: Correct way of obtaining an icon
From:       Oszkar Ambrus <oszkar.ambrus () deri ! org>
Date:       2009-10-23 9:08:58
Message-ID: 4AE172AA.8080906 () deri ! org
[Download RAW message or body]

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 <<

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

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