PDA

View Full Version : Path problems?



sshd
6th March 2008, 23:57
I have written a program with a irregular widget, on Linux work fine if I execute it from the shell terminal but if I try to execute it from konqueror the program don't load the image used to make the mask.
On windows is diferent, if I execute the program from the directory where I compile it, it work, but if I change the program to other directory don't load the image.:confused:

wysota
7th March 2008, 00:04
You are using relative paths to images. Try giving absolute ones, for example using QCoreApplication::applicationDirPath() or embed images into the program binary using Qt resource system.