Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved windows deployment

    Installation and Deployment
    2
    7
    943
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      murali last edited by

      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

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • M
          murali last edited by

          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);
          
          1 Reply Last reply Reply Quote 0
          • M
            murali last edited by

            hi...
            can you check below link images of development machine and target machine application screen shot

            https://www.sendspace.com/filegroup/bDMV4O4XpXNM9%2BgjqDpRzD6TUYfokLny

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Check that your deployment folder also contains the image plugins.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • M
                murali last edited by

                how can i get to know what are plugins required. is there any way to automate the plugins to app.exe folder

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  windeployqt usually handles that for you.

                  Can you try re-running it giving the executable file rather than the folder ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post