[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: !! need help loading icons/images
From: Olaf Lueg <olueg () olsd ! de>
Date: 2003-06-24 8:06:30
[Download RAW message or body]
On Die, 2003-06-24 at 08:51, Adrian Rodriguez wrote:
> Hi... I'm working on a KDE application and I'm having trouble finding a way to
> load icons.
> >From the source package... you can do a ./configure
> --prefix=/your/dir/of/choice
>
> so it will install it into $prefix/bin/
> and it will install a logo into $prefix/share/apps/myapp/mylogo.png
>
> my problem is... how do i find this icon??
> people can install into any prefix so is there a way to determine which prefix
> they installed into???...
>
> I've been looking at KIconLoader to try and load the icon but i'm stuck
> again... not sure how to find the logo.
>
> any help would be great thanx
You can load your icon with:
KStandardDirs::findResource()
KStandardDirs dir;
QPixmap(dir.findResource("data","myapp/mylogo.png") );
Olaf
>> 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