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. qt quick application deployment problem
Forum Updated to NodeBB v4.3 + New Features

qt quick application deployment problem

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 596 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
    mondo
    wrote on last edited by
    #1

    I'm trying the procedure of deploying a Qt project. I have this very small project as following:

    import QtQuick 2.11
    import QtQuick.Controls 2.2
    import QtQuick.Window 2.11
    
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Test")
        Button{
            id:adad
            text:"test"      //this line caueses trouble
        }
    }
    

    It builds and runs perfectly in QtCreator, the windows shows a button with text on it.
    Then I copied the executable somewhere else, the program won't launch. By adding Qt shared libraries, it lauches and shows an empty window. However the button is not shown, and window crashes in a few seconds.

    The problem seems to be with the text attribute, for if I remove the text attribute leaving only an empty button, It works all good.
    I tried windeployqt.exe to copy plugins into the exe folder, but the problem remains.
    I feel that the problem is qt failed to load the plugin libraries, but how to figure it out.

    Thanks for help

    M 1 Reply Last reply
    0
    • M mondo

      I'm trying the procedure of deploying a Qt project. I have this very small project as following:

      import QtQuick 2.11
      import QtQuick.Controls 2.2
      import QtQuick.Window 2.11
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Test")
          Button{
              id:adad
              text:"test"      //this line caueses trouble
          }
      }
      

      It builds and runs perfectly in QtCreator, the windows shows a button with text on it.
      Then I copied the executable somewhere else, the program won't launch. By adding Qt shared libraries, it lauches and shows an empty window. However the button is not shown, and window crashes in a few seconds.

      The problem seems to be with the text attribute, for if I remove the text attribute leaving only an empty button, It works all good.
      I tried windeployqt.exe to copy plugins into the exe folder, but the problem remains.
      I feel that the problem is qt failed to load the plugin libraries, but how to figure it out.

      Thanks for help

      M Offline
      M Offline
      mondo
      wrote on last edited by
      #2

      I currently walk around this issue by changing into MSVC2015 32bit compiler. I was using MSVC2017 64bit before.
      But still curious about the reason. what's so different with these two compilers? I can't that I'm missing 64bit libraries in my system because it runs fine in QtCreator.
      How does QtCreator set the environment? Is there any way to look into the process of QtCreator run command?

      jsulmJ 1 Reply Last reply
      0
      • M mondo

        I currently walk around this issue by changing into MSVC2015 32bit compiler. I was using MSVC2017 64bit before.
        But still curious about the reason. what's so different with these two compilers? I can't that I'm missing 64bit libraries in my system because it runs fine in QtCreator.
        How does QtCreator set the environment? Is there any way to look into the process of QtCreator run command?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @mondo said in qt quick application deployment problem:

        How does QtCreator set the environment? Is there any way to look into the process of QtCreator run command?

        Yes, "Projects/Run/Run Environment" (in QtCreator on the left side).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

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