Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
i have developed small application when i am deploying to another windows machine i am getting some error like background image not showing and fonts not showing. if i install qt on target machine its running properly. help me with out installing qt how can i deploy
Hi and welcome to devnet,
How did you prepare your deployment ? Did you use windeployqt ?
How are you handling the resources of your application ? e.g. background images etc.
Hi Thanks for your reply. i have used windeployqt.exe for copying lib files using below command windeployqt.exe --quick .(dot) .
and i am using .qrc file for background images. and am loading image below manner.
QImage *qImg = new QImage(":/image/image/bgm3.jpg");
if(qImg->isNull()) qDebug()<<" Error in Loading image"; QPixmap bkgnd = QPixmap::fromImage(qImg->scaled(dw.size(),Qt::IgnoreAspectRatio,Qt::SmoothTransformation)); QPalette palette; palette.setBrush(QPalette::Background, bkgnd); setPalette(palette);
can you check below link images of development machine and target machine application screen shot
Check that your deployment folder also contains the image plugins.
how can i get to know what are plugins required. is there any way to automate the plugins to app.exe folder
windeployqt usually handles that for you.
Can you try re-running it giving the executable file rather than the folder ?