PDA

View Full Version : QPixmap missing picture



dognzhe
24th July 2009, 05:16
I am writing a game and i use the four picture for the tank as following

tankUp = new QPixmap(":/CannonBattle/Resources/tank up.jpg");
tankDown= new QPixmap(":/CannonBattle/Resources/tank down.jpg");
tankRight =new QPixmap(":/CannonBattle/Resources/tank right.jpg");
tankLeft = new QPixmap(":/CannonBattle/Resources/tank left.jpg");

every thing is fine when i run the app on my deveploment computer, but i send app to my friend, he cannot see the tank picture. i have distributed three dlls "QtNetwork4.dll" "QtGui4.dll" and "QtCore4.dll". need help....

dognzhe
24th July 2009, 05:31
and the develpoment is english, my friend computer is chinese version

nish
24th July 2009, 05:47
you have to supply the jpeg plugin... see here plugins (http://doc.qtsoftware.com/4.5/deployment-windows.html#qt-plugins)

dognzhe
27th July 2009, 02:11
you have to supply the jpeg plugin... see here plugins (http://doc.qtsoftware.com/4.5/deployment-windows.html#qt-plugins)


thanks but how do I find out which plugin that I have used?

Lykurg
27th July 2009, 08:46
thanks but how do I find out which plugin that I have used?
By thinking or reading the suggested doc! (-> Dependency Walker)

dognzhe
27th July 2009, 09:00
By thinking or reading the suggested doc! (-> Dependency Walker)

joking? plugins will not show up in Dependency Walker.

nish
27th July 2009, 09:01
yes they will not show up but dont you know which files your program uses? i mean u must be knowing that what is the extension of your pics? thats the plugin you need..