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");
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");
To copy to clipboard, switch view to plain text mode
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;
static const QIcon IconeInicialFotoPetita;
static const QIcon IconeLlibreObert;
static const QIcon IconeLlibreTancat;
static const QIcon IconeCarpetaOberta;
static const QIcon IconeCarpetaTancada;
To copy to clipboard, switch view to plain text mode
Anybody could explain me why?
Thanks.
Bookmarks