Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to run exe file
Forum Updated to NodeBB v4.3 + New Features

how to run exe file

Scheduled Pinned Locked Moved Solved QML and Qt Quick
26 Posts 3 Posters 3.6k 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.
  • ali-aydinA ali-aydin

    @J-Hilk
    I got new problem
    when I changing the directory on laptop it is not working anymore
    yes all the qml files in one resource file
    bit system is x64
    Qt Libraries is in the same directory with exe file

    J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #17

    @ali-aydin said in how to run exe file:

    when I changing the directory on laptop it is not working anymore

    I find that very hard to believe, if you copy the exe and all files and folders that windeployqt deployed then it should work anywhere on your pc.

    Does your program do anything path specific, do you read a file that is required or something along that line


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    ali-aydinA 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      @ali-aydin said in how to run exe file:

      when I changing the directory on laptop it is not working anymore

      I find that very hard to believe, if you copy the exe and all files and folders that windeployqt deployed then it should work anywhere on your pc.

      Does your program do anything path specific, do you read a file that is required or something along that line

      ali-aydinA Offline
      ali-aydinA Offline
      ali-aydin
      wrote on last edited by
      #18

      @J-Hilk
      I'm coping entire folder to other directory
      and then it's not working

      J.HilkJ 1 Reply Last reply
      0
      • ali-aydinA ali-aydin

        @J-Hilk
        I'm coping entire folder to other directory
        and then it's not working

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #19

        @ali-aydin very strange
        can you post a screenshot of that folder ?

        and are you sure your app/code doesn't require files to read or something similar on start up?
        any error messages?


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        ali-aydinA 1 Reply Last reply
        1
        • J.HilkJ J.Hilk

          @ali-aydin very strange
          can you post a screenshot of that folder ?

          and are you sure your app/code doesn't require files to read or something similar on start up?
          any error messages?

          ali-aydinA Offline
          ali-aydinA Offline
          ali-aydin
          wrote on last edited by
          #20

          @J-Hilk
          yes sure, I can send you my test code too.

          Untitled12.png

          J.HilkJ 1 Reply Last reply
          0
          • ali-aydinA ali-aydin

            @J-Hilk
            yes sure, I can send you my test code too.

            Untitled12.png

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #21

            @ali-aydin ok, the deployment folder seems to be missing tons of qml related plugins.

            What was the actual call to windeployqt ?


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            ali-aydinA 1 Reply Last reply
            1
            • J.HilkJ J.Hilk

              @ali-aydin ok, the deployment folder seems to be missing tons of qml related plugins.

              What was the actual call to windeployqt ?

              ali-aydinA Offline
              ali-aydinA Offline
              ali-aydin
              wrote on last edited by
              #22

              @J-Hilk
              if your mean is command
              command : windeployqt MarketTest.exe
              just this

              1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                @ali-aydin ok, you should use it. it is, like the name suggested for deploying your executable.

                https://doc.qt.io/qt-6/windows-deployment.html

                General steps on how to use it:

                • Open command line prompt
                • execute the qtenv2.bat inside the bin folder of the Qt kit, you used to compile your application
                • in the same folder you will also now find the windeployqt.exe
                • so execute that program, give it the fill path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)

                90% of the time, if done properly, this should be everything you need to do

                J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on last edited by
                #23

                @ali-aydin and where in that command is the requested --qmldir option ? 😉

                @J-Hilk said in how to run exe file:

                • so execute that program, give it the full path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)

                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                ali-aydinA 1 Reply Last reply
                2
                • J.HilkJ J.Hilk

                  @ali-aydin and where in that command is the requested --qmldir option ? 😉

                  @J-Hilk said in how to run exe file:

                  • so execute that program, give it the full path to your own binary, and since its a qml application, also give the --qmldir option the full path to the folder containing your main.qml (the actual source file)
                  ali-aydinA Offline
                  ali-aydinA Offline
                  ali-aydin
                  wrote on last edited by
                  #24

                  @J-Hilk
                  I checked that is ok
                  thanks a lot

                  J.HilkJ 1 Reply Last reply
                  0
                  • ali-aydinA ali-aydin

                    @J-Hilk
                    I checked that is ok
                    thanks a lot

                    J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on last edited by
                    #25

                    @ali-aydin I'm sorry, do you mean its now working for you ?


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    ali-aydinA 1 Reply Last reply
                    1
                    • J.HilkJ J.Hilk

                      @ali-aydin I'm sorry, do you mean its now working for you ?

                      ali-aydinA Offline
                      ali-aydinA Offline
                      ali-aydin
                      wrote on last edited by
                      #26

                      @J-Hilk
                      yes it worked on the laptop and I moved it to pc and on the pc worked too
                      thank you for your help

                      1 Reply Last reply
                      2

                      • Login

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