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. Deploy problem with QtQuick.Controls 2.0
Forum Updated to NodeBB v4.3 + New Features

Deploy problem with QtQuick.Controls 2.0

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 3 Posters 5.4k Views 3 Watching
  • 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
    Galbarad
    wrote on 3 Feb 2017, 09:05 last edited by
    #1

    Hi all
    In case you remember my previous posts ;) you know than I add qml form with QtQuick.Controls 2.0 into my project
    when I run project in QtCreator all fine, but when I run app from application folder start problem
    project running and main form appears, but when I try open form with QtQuick.Controls 2.0 they do not show
    looks like missing some dll (but without QtQuick.Controls 2.0 all work fine because I already copy all needed dlls into "user application folder")
    so maybe somebody know missed dll

    import QtQuick.Controls 2.0
    

    also I try to use with windeployqt following keys but with same result (main form appear, Control2 form no)

    d:\Qt\5.7\msvc2013_64\bin\windeployqt.exe --release --dir d:\SVN\PROJECT\Qt\OracleDeploymentTool\release\x64_test --qmldir d:\Qt\5.7\msvc2013_64\qml d:\Dropbox\Work\Qt\build-OracleDeploymentTool-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\OracleDeploymentTool.exe
    

    thanks for help

    1 Reply Last reply
    0
    • V Offline
      V Offline
      veryqtperson
      wrote on 3 Feb 2017, 09:56 last edited by
      #2

      I had a similar problem. Manually copying these libraries helped me:

      • Qt5QuickParticles.dll (because I used particles)
      • Qt5QuickControls2.dll
      • Qt5QuickTemplates2.dll

      Maybe that will help you too?

      Regarding windeployqt - I gave up on it, for me it's easier to copy libraries myself.

      G 1 Reply Last reply 3 Feb 2017, 10:00
      0
      • V veryqtperson
        3 Feb 2017, 09:56

        I had a similar problem. Manually copying these libraries helped me:

        • Qt5QuickParticles.dll (because I used particles)
        • Qt5QuickControls2.dll
        • Qt5QuickTemplates2.dll

        Maybe that will help you too?

        Regarding windeployqt - I gave up on it, for me it's easier to copy libraries myself.

        G Offline
        G Offline
        Galbarad
        wrote on 3 Feb 2017, 10:00 last edited by
        #3

        hi @veryqtperson thank you for answer
        yes I try add this dlls but looks like its not enough
        maybe I should start copy dlls from bin one by one?((

        V 1 Reply Last reply 3 Feb 2017, 10:08
        0
        • G Galbarad
          3 Feb 2017, 10:00

          hi @veryqtperson thank you for answer
          yes I try add this dlls but looks like its not enough
          maybe I should start copy dlls from bin one by one?((

          V Offline
          V Offline
          veryqtperson
          wrote on 3 Feb 2017, 10:08 last edited by veryqtperson 2 Mar 2017, 10:09
          #4

          Well, that's what I usually do.
          But I start with copying all the libraries and then delete one by one to find out which are really needed :)
          After some time you will know better which libraries are required for which type of application, so it gets easier.

          G 1 Reply Last reply 3 Feb 2017, 10:22
          1
          • V veryqtperson
            3 Feb 2017, 10:08

            Well, that's what I usually do.
            But I start with copying all the libraries and then delete one by one to find out which are really needed :)
            After some time you will know better which libraries are required for which type of application, so it gets easier.

            G Offline
            G Offline
            Galbarad
            wrote on 3 Feb 2017, 10:22 last edited by
            #5

            ok, thank you @veryqtperson
            I'll try

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Galbarad
              wrote on 3 Feb 2017, 10:58 last edited by
              #6

              I add all dll from bin to my release folder without result, so I do what I must to do long time ago
              I add alert dialog and rise it with qml error )))
              so I get error message "qtquick.controls version 2.0 is not installed"

              1 Reply Last reply
              0
              • V Offline
                V Offline
                veryqtperson
                wrote on 3 Feb 2017, 11:20 last edited by
                #7

                Do you have QT += qml quick in your .pro file?
                And maybe import QtQuick 2.7 before import QtQuick.Controls 2.0 (I don't know if it's relevant)?

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  Galbarad
                  wrote on 3 Feb 2017, 11:31 last edited by
                  #8

                  ok problem solved
                  final file list in release folder

                  platforms
                    qwindows.dll 
                  qml
                    QtQml 
                      Models.2 
                        modelsplugin.dll plugins.qmltypes qmldir
                      StateMachine 
                        plugins.qmltypes qmldir qtqmlstatemachine.dll
                    QtQuick 
                      Controls
                        plugins.qmltypes qmldir qtquickcontrolsplugin.dll 
                      Controls.2
                        Material
                          plugins.qmltypes qmldir qtquickcontrols2materialstyleplugin.dll 
                        Universal
                          plugins.qmltypes qmldir qtquickcontrols2universalstyleplugin.dll
                        ApplicationWindow.qml
                        BusyIndicator.qml
                        Button.qml
                        CheckBox.qml
                        CheckDelegate.qml
                        CheckIndicator.qml
                        ComboBox.qml
                        Dial.qml
                        Drawer.qml
                        Frame.qml
                        GroupBox.qml
                        ItemDelegate.qml
                        Label.qml
                        Menu.qml
                        MenuItem.qml
                        Page.qml
                        PageIndicator.qml
                        Pane.qml
                        plugins.qmltypes
                        Popup.qml
                        ProgressBar.qml
                        qmldir
                        qtquickcontrols2plugin.dll
                        RadioButton.qml
                        RadioDelegate.qml
                        RadioIndicator.qml
                        RangeSlider.qml
                        ScrollBar.qml
                        ScrollIndicator.qml
                        Slider.qml
                        SpinBox.qml
                        StackView.qml
                        SwipeDelegate.qml
                        SwipeView.qml
                        Switch.qml
                        SwitchDelegate.qml
                        SwitchIndicator.qml
                        TabBar.qml
                        TabButton.qml
                        TextArea.qml
                        TextField.qml
                        ToolBar.qml
                        ToolButton.qml
                        ToolTip.qml
                        Tumbler.qml
                      Dialogs
                        Private 
                          dialogsprivateplugin.dll qmldir 
                        dialogplugin.dll 
                        plugins.qmltypes 
                        qmldir
                      Layouts
                        plugins.qmltypes qmldir qquicklayoutsplugin.dll 
                      LocalStorage
                        plugins.qmltypes qmldir qmllocalstorageplugin.dll 
                      Particles.2
                        particlesplugin.dll plugins.qmltypes qmldir 
                      PrivateWidgets
                        plugins.qmltypes qmldir widgetsplugin.dll 
                      Templates.2
                        plugins.qmltypes qmldir qtquicktemplates2plugin.dll 
                      Window.2
                        plugins.qmltypes qmldir windowplugin.dll 
                      XmlListModel
                        plugins.qmltypes qmldir qmlxmllistmodelplugin.dll 
                    QtQuick.2
                      plugins.qmltypes qmldir qtquick2plugin.dll
                  qt.conf
                  icudt54.dll
                  icuin54.dll
                  icuuc54.dll
                  libeay32.dll
                  libssl32.dll
                  msvcp120.dll
                  msvcr120.dll
                  qgenericbearer.dll
                  qnativewifibearer.dll
                  qquicklayoutsplugin.dll
                  Qt5Core.dll
                  Qt5Gui.dll
                  Qt5Network.dll
                  Qt5Qml.dll
                  Qt5Quick.dll
                  Qt5QuickControls2.dll
                  Qt5QuickTemplates2.dll
                  Qt5Widgets.dll
                  qtquick2plugin.dll
                  qtquickcontrolsplugin.dll
                  ssleay32.dll
                  vccorlib120.dll
                  windowplugin.dll
                  OracleDeploymentTool.exe
                  
                  A 1 Reply Last reply 11 Aug 2022, 20:41
                  0
                  • G Galbarad
                    3 Feb 2017, 11:31

                    ok problem solved
                    final file list in release folder

                    platforms
                      qwindows.dll 
                    qml
                      QtQml 
                        Models.2 
                          modelsplugin.dll plugins.qmltypes qmldir
                        StateMachine 
                          plugins.qmltypes qmldir qtqmlstatemachine.dll
                      QtQuick 
                        Controls
                          plugins.qmltypes qmldir qtquickcontrolsplugin.dll 
                        Controls.2
                          Material
                            plugins.qmltypes qmldir qtquickcontrols2materialstyleplugin.dll 
                          Universal
                            plugins.qmltypes qmldir qtquickcontrols2universalstyleplugin.dll
                          ApplicationWindow.qml
                          BusyIndicator.qml
                          Button.qml
                          CheckBox.qml
                          CheckDelegate.qml
                          CheckIndicator.qml
                          ComboBox.qml
                          Dial.qml
                          Drawer.qml
                          Frame.qml
                          GroupBox.qml
                          ItemDelegate.qml
                          Label.qml
                          Menu.qml
                          MenuItem.qml
                          Page.qml
                          PageIndicator.qml
                          Pane.qml
                          plugins.qmltypes
                          Popup.qml
                          ProgressBar.qml
                          qmldir
                          qtquickcontrols2plugin.dll
                          RadioButton.qml
                          RadioDelegate.qml
                          RadioIndicator.qml
                          RangeSlider.qml
                          ScrollBar.qml
                          ScrollIndicator.qml
                          Slider.qml
                          SpinBox.qml
                          StackView.qml
                          SwipeDelegate.qml
                          SwipeView.qml
                          Switch.qml
                          SwitchDelegate.qml
                          SwitchIndicator.qml
                          TabBar.qml
                          TabButton.qml
                          TextArea.qml
                          TextField.qml
                          ToolBar.qml
                          ToolButton.qml
                          ToolTip.qml
                          Tumbler.qml
                        Dialogs
                          Private 
                            dialogsprivateplugin.dll qmldir 
                          dialogplugin.dll 
                          plugins.qmltypes 
                          qmldir
                        Layouts
                          plugins.qmltypes qmldir qquicklayoutsplugin.dll 
                        LocalStorage
                          plugins.qmltypes qmldir qmllocalstorageplugin.dll 
                        Particles.2
                          particlesplugin.dll plugins.qmltypes qmldir 
                        PrivateWidgets
                          plugins.qmltypes qmldir widgetsplugin.dll 
                        Templates.2
                          plugins.qmltypes qmldir qtquicktemplates2plugin.dll 
                        Window.2
                          plugins.qmltypes qmldir windowplugin.dll 
                        XmlListModel
                          plugins.qmltypes qmldir qmlxmllistmodelplugin.dll 
                      QtQuick.2
                        plugins.qmltypes qmldir qtquick2plugin.dll
                    qt.conf
                    icudt54.dll
                    icuin54.dll
                    icuuc54.dll
                    libeay32.dll
                    libssl32.dll
                    msvcp120.dll
                    msvcr120.dll
                    qgenericbearer.dll
                    qnativewifibearer.dll
                    qquicklayoutsplugin.dll
                    Qt5Core.dll
                    Qt5Gui.dll
                    Qt5Network.dll
                    Qt5Qml.dll
                    Qt5Quick.dll
                    Qt5QuickControls2.dll
                    Qt5QuickTemplates2.dll
                    Qt5Widgets.dll
                    qtquick2plugin.dll
                    qtquickcontrolsplugin.dll
                    ssleay32.dll
                    vccorlib120.dll
                    windowplugin.dll
                    OracleDeploymentTool.exe
                    
                    A Offline
                    A Offline
                    Anton-V-K
                    wrote on 11 Aug 2022, 20:41 last edited by Anton-V-K 8 Nov 2022, 21:21
                    #9

                    @Galbarad , thanks for the sample folders layout - it helped me to partially resolve the similar issue with missing QtQuick.Layouts (like "module "QtQuick.Layouts" is not installed").
                    However doing this manually is too tedious, so I'd vote for windeployqt.exe which does its job (in Qt5.15.5) quite good (especially after you limit the copied modules with the options).

                    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