Web lists-archives.org

Re: Toolbar icons "image.png"




On Sunday 18 November 2007, Tao Man Li wrote:
> The Toolbar icon "filenew.png" will NOT appear, and even if the
> "filenew.png"
> is NOT in the path (not exists at all), the compiler will NOT report
> error !

yes, it's a runtime error, not a compile-time error.

> The program compiles,  and works, only WITHOUT the toolbar icons.
>
> The same program compiles perfect with qmake, ALL Toolbar icons appear
> fine.
> What is wrong ?

i would imagine the issue is that the filenew.png file is not in the directory 
that the application is being launched from. you should either compile the 
png into your app as a resource or else install the file somewhere on disk 
that you know you can access it from (e.g. /usr/share/apps/<yourapp>/ or 
whatever).

if you use KDE's libraries, you'd be able to just do KIcon("filenew") =)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech

Attachment: pgpQTcvefEAMw.pgp
Description: PGP signature

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<