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

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);
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);