SkripT
7th March 2006, 12:36
Hi all, my application crashes when I make the following declarations of icons in the global space:
static const QIcon IconeInicialFotoPetita("../icone.bmp");
static const QIcon IconeLlibreObert("../llibreobert.png");
static const QIcon IconeLlibreTancat("../llibretancat.png");
static const QIcon IconeCarpetaOberta("../carpetaoberta.png");
static const QIcon IconeCarpetaTancada("../carpetatancada.png");
But it doesn't crash if I just declare them as null icons:
static const QIcon IconeInicialFotoPetita;
static const QIcon IconeLlibreObert;
static const QIcon IconeLlibreTancat;
static const QIcon IconeCarpetaOberta;
static const QIcon IconeCarpetaTancada;
Anybody could explain me why?
Thanks.
static const QIcon IconeInicialFotoPetita("../icone.bmp");
static const QIcon IconeLlibreObert("../llibreobert.png");
static const QIcon IconeLlibreTancat("../llibretancat.png");
static const QIcon IconeCarpetaOberta("../carpetaoberta.png");
static const QIcon IconeCarpetaTancada("../carpetatancada.png");
But it doesn't crash if I just declare them as null icons:
static const QIcon IconeInicialFotoPetita;
static const QIcon IconeLlibreObert;
static const QIcon IconeLlibreTancat;
static const QIcon IconeCarpetaOberta;
static const QIcon IconeCarpetaTancada;
Anybody could explain me why?
Thanks.