windows deployment
-
Hi
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.
QDesktopWidget dw;
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);
-
hi...
can you check below link images of development machine and target machine application screen shothttps://www.sendspace.com/filegroup/bDMV4O4XpXNM9%2BgjqDpRzD6TUYfokLny
-
Check that your deployment folder also contains the image plugins.
-
windeployqt usually handles that for you.
Can you try re-running it giving the executable file rather than the folder ?