[Kde-games-devel] Re: Resource directory
cantabile
cantabile.03 at wanadoo.fr
Tue Oct 14 23:07:35 CEST 2003
Well, didn't work either...
> Try findResourceDir("data", "your_app_name/pics/bd.png");
> your_app_name is the name that you provided to KAboutData in main. Usually all
> lowercase. It is also the name of the directory of your app in
> $KDEDIR/share/apps/
Provided my app directory is ~/projects/kmatches, which has a subdir
'pics' and another, 'debug', with a 'src' subdir inside (Kdevelop
default now), where the exe is, what would you write in order to get the
path to 'pics' as a QString ?
Makefile.am has CPPFLAGS = -DSRCDIR="\"$(shell (cd $(srcdir) && pwd))
\""
which outputs ~/projects/kmatches/src
I'm lost with these paths things...
Thx.
More information about the kde-games-devel
mailing list