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. Qml works fine on dev machine, crashes on others.

Qml works fine on dev machine, crashes on others.

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.3k 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.
  • G Offline
    G Offline
    ggwolf
    wrote on last edited by
    #1

    Using vs2010 qt5.2.1

    i copied my release dir to a flashdrive and tried running it on another windows machine, but on execution it fails every time. I have the qml access through qrc, along with every resource access done through qrc in the qml code.

    relevant CPP code:

    @ m_view = new QQuickView;
    Q_CHECK_PTR(m_view);

    m_view->setSource(QUrl("qrc:/ControlPanel.qml"));
    m_container = QWidget::createWindowContainer(m_view);

    Q_CHECK_PTR(m_container);

    m_uiRoot = m_view->rootObject(); //root object here gets set to NULL

    Q_CHECK_PTR(m_uiRoot); // fails
    @

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jrikken
      wrote on last edited by
      #2

      Did you copied the binaries with your flashdrive, or your source files? Because when you copy your binaries, you need to copy all relevant dll files with it (asuming your "another windows machine" does not have qt installed on it).

      To automate this you can use windeployqt. More information here: http://qt-project.org/doc/qt-5/windows-deployment.html#the-windows-deployment-tool

      If this doesn't solve your problem, could you post the error message?

      As they say in the Netherlands: gaat niet bestaat niet

      1 Reply Last reply
      0
      • G Offline
        G Offline
        ggwolf
        wrote on last edited by
        #3

        I got "Unable to locate ICU library icuin51.dll" which is really weird because the dll is in both my target binary's directory and windeployqt's directory.

        NO LONGER ISSUE: fixed by adding my qt dir to %PATH%.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          ggwolf
          wrote on last edited by
          #4

          After running windeployqt, and trying copying the directory after that, still the same error.

          Error message:

          Problem Event Name: APPCRASH
          Fault Module Name: MSVCR100.dll
          Fault module version: 10.0.40219.1
          Fault Module timestamp:4d5f0c22
          Exception Code: 40000015
          Exception Offset: 0008d6fd

          1 Reply Last reply
          0
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by
            #5

            You may be missing some plugins and qml directory.
            @1. Please go to your installation take plugins like platform etc.
            2. Go to qml directory and get some directories like QtQml, QtQuick.2 etc. @

            These need to be there in the directory where you are placing your executable. This should fix your issue.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            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