Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. windows deployment

windows deployment

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 2 Posters 1.2k Views
  • 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 Offline
    M Offline
    murali
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        murali
        wrote on last edited by
        #3

        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
        0
        • M Offline
          M Offline
          murali
          wrote on last edited by
          #4

          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
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            0
            • M Offline
              M Offline
              murali
              wrote on last edited by
              #6

              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
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                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
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved