Bonjour,
J'essaye d'afficher une image .gif sous Qt,
La compilation se passe bien sans erreur, sauf rien n'est affiché!
voici mon code
même problème, si j'utilise un fichier de ressources.qrc
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 backgroundLabel = new QLabel(this); QPixmap *backgroundPixmap = new QPixmap("./images/1.gif"); backgroundLabel->setPixmap(*backgroundPixmap);
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 backgroundLabel = new QLabel(this); QPixmap *backgroundPixmap = new QPixmap(":/images/1.gif"); backgroundLabel->setPixmap(*backgroundPixmap);
Partager