Icons
Rene M�rten
delta_x at linuxcoding.de
Mon Apr 3 16:10:29 BST 2000
On Sun, 02 Apr 2000, you wrote:
> I'm having a small problem with toolbar icons. In order to see icons
> that I have stored in my project directory (<project>/pix), I have to
> hardcode in the full path to the icon. This means that anyone else who
> wants to see the icons would have to go into the code and change the
> path. I don't want to have to install the icons in the toolbar
> directory. How can I tell KDevelop where to find these icons without
> hardcoding the path whereever I need to load one?
>=20
> Tim
#include "path/mypix.xpm"
QPixmap *pm1 =3D new QPixmap((const char **)mypix.);
now it will be distributed within your executables.
--=20
Kind Regards Rene M=E4rten
E-Mail: Delta_X at LinuxCoding.de
=09Delta_x at Codewizards.org
Home: http://www.LinuxCoding.de in future
http://www.codewizards.de/kcommander
More information about the KDevelop
mailing list