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

Problem with QtQuick Controls

Scheduled Pinned Locked Moved QML and Qt Quick
31 Posts 6 Posters 20.6k Views 1 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.
  • A Offline
    A Offline
    aprrmx90
    wrote on last edited by
    #1

    hi, i'm new in this forum, i finish a development of one application, i work on Qt5.1.0 openGL version, with MSVC 2010 in a precompiled version, but when i try execute my application in a clean environmente, i get a error with QtQuickControls (with checkbox.qml and combobox.qml), the console says cannot load plugin for a module , and cannot load library, y try put a directories QtQuick, QtQuick.2 and QtQml, the structure of a directory of application is this:

    • QtQuick
    • QtQuick.2
    • QtQml
    • platforms*.dll
    • "*.dll"
    • ui*.qml files
    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasun
      wrote on last edited by
      #2

      Did you try to have Qt* Directories inside a qml directory?

      like this

      • platforms*.dll
      • “*.dll”
      • ui*.qml files
      • qml
        ** QtQuick
        ** QtQuick.2
        ** QtQml
      1 Reply Last reply
      0
      • A Offline
        A Offline
        aprrmx90
        wrote on last edited by
        #3

        Yes, but then the error message is "module QtQuick is not installed"

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dasun
          wrote on last edited by
          #4

          Did you compile it to a exe? "ref ":http://doc-snapshot.qt-project.org/qt5-nosubdir/qtquick-deployment.html

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aprrmx90
            wrote on last edited by
            #5

            well, thanks for your reply, but i searched and find a QmlComponents how replace CheckBox and ComboBox, and are works fine. In the future i try again a use QtQuickControls in a application.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              frankem
              wrote on last edited by
              #6

              Hello,

              I have the same problem when deploying an app on Windows with Qt Quick Controls and Qt 5.2.0. I get an error message on the command line saying "Cannot load library <SOME_PATH>/qtquickcontrolsplugin.dll". I double-checked <SOME_PATH> and the file definitely exists there. Moreover, I copied the file to varies subdirectories in my deployment folder without any success.

              Thanks for any comments on this.

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                Hi frankem,

                Try following this guide: http://qt-project.org/wiki/Deploy_an_Application_on_Windows

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                1
                • F Offline
                  F Offline
                  frankem
                  wrote on last edited by
                  #8

                  Hi JKSH,

                  thanks for your reply. I followed the tutorial and copied all the files to their respective locations. But still I get a blank screen. :-(

                  However, as stated above the problem seems to be with the Qt Quick Controls plugin. Has anybody ever deployed an application on Windows using Qt Quick Controls???

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    onek24
                    wrote on last edited by
                    #9

                    Hello,

                    have you tried to deploy it statically or dynamically? There was a thread about half a day ago with maybe the same problem, it's not solved yet.

                    "QML project can’t be run by Static Qt linking version , Qt 5.2":http://qt-project.org/forums/viewthread/38356/

                    If you are building dynamically you could try to make qtquickcontrols and place them in your folder. You can find the resources here:
                    PATH_TO_YOUR_QT\QT_VERSION\Src\qtquickcontrols

                    For example:
                    C:\Qt\5.2.0\Src\qtquickcontrols

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      frankem
                      wrote on last edited by
                      #10

                      Dear onek24,

                      I tried to deploy it dynamically. Static linking/deploying Qt/QML applications seems to be broken anyway since a couple of weeks and I think it's not even supported for QML applications.

                      Anyway I tried to deploy dynamically and I added all dll's from my Qt directory according to the link provided by JKSH. Even the qtquickcontrols.dll is included there but still there is a problem when loading this file although it's definitely there in the filesystem - once in the Qt directory and once in my own deployment folder.

                      I am really praying for a button "Deploy on Windows" in the next Qt Creator release as there are so many people having problems with the deployment process,

                      Any comments on this are very welcome.

                      1 Reply Last reply
                      0
                      • JKSHJ Offline
                        JKSHJ Offline
                        JKSH
                        Moderators
                        wrote on last edited by
                        #11
                        • Does your app work when you run it in Qt Creator?
                        • How many versions of Qt do you have installed?
                        • Can you please provide screenshots of (i) your deployment folder, and (ii) your error message?

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dasun
                          wrote on last edited by
                          #12

                          Yes, Give us the directory structure of your deployment folder and the error message you get (or screenshot of it).

                          1 Reply Last reply
                          0
                          • O Offline
                            O Offline
                            onek24
                            wrote on last edited by
                            #13

                            Have you checked your dependencies? Probably something is missing which would be needed by qtquickcontrols.dll?

                            1 Reply Last reply
                            0
                            • F Offline
                              F Offline
                              frankem
                              wrote on last edited by
                              #14

                              [quote author="JKSH" date="1392363736"]

                              • Does your app work when you run it in Qt Creator?

                              • How many versions of Qt do you have installed?

                              • Can you please provide screenshots of (i) your deployment folder, and (ii) your error message?[/quote]

                              • Yes, it's working in Qt Creator

                              • I have only Qt 5.2.0 installed.

                              • My deployment folder is 1,5 GB!!! (including a lot of debug dlls but anyway) My executable is "P4UGui.exe". Here are some screenshots:

                              Deployment folder

                              !http://dl.dropboxusercontent.com/u/55395871/deployment_folder.PNG(deployment_folder)!

                              Application Output

                              !http://dl.dropboxusercontent.com/u/55395871/app_output.png(app_output)!

                              Error message

                              !http://dl.dropboxusercontent.com/u/55395871/error_message.PNG(error_message)!

                              As already state above the file qtquickcontrolsplugin.dll is present in the folder deployment/QtQuick/Controls.

                              1 Reply Last reply
                              0
                              • JKSHJ Offline
                                JKSHJ Offline
                                JKSH
                                Moderators
                                wrote on last edited by
                                #15

                                Thank you for the screenshots.

                                Please follow Step #2 of the "Initial deployment" section of the guide properly. You don't have all DLLs.

                                Where did you download this copy of Qt 5.2.0 from?

                                Where did you get D3DCompiler_43.dll from?

                                Do you have a file called "qtquick2controlsapplicationviewer.h" in your project? If so, please copy+paste its contents here.

                                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                1 Reply Last reply
                                0
                                • F Offline
                                  F Offline
                                  frankem
                                  wrote on last edited by
                                  #16

                                  Well I have to admit that you are right. ;-)

                                  I copied ALL dlls from the ming48_32/bin folder and now it works. Finally my deployment folder holds 3 GB and now I will try to reduce this size step by step. I will update this post and tell you which dll I was missing finally.

                                  Still I am wondering why the application doesn't complain about missing dlls as it used to do if you are missing e.g. Qt5Core.dll or Qt5Gui.dll. Furthermore, I used Dependency Walker and not even this one reported any missing dlls.

                                  1 Reply Last reply
                                  0
                                  • D Offline
                                    D Offline
                                    dasun
                                    wrote on last edited by
                                    #17

                                    some dll are load at runtime, I always use Dependency Walker with profiling. http://www.dependencywalker.com/help/html/hidm_execute.htm

                                    1 Reply Last reply
                                    0
                                    • F Offline
                                      F Offline
                                      frankem
                                      wrote on last edited by
                                      #18

                                      Ok finally I managed to squeeze down my deployment folder to 110 MB and it still works!!! I am pretty sure that I can further reduce memory as there might be a couple of more stuff in the folders Qt, QtQuick and QtQuick.2 which I actually do not need. Nevertheless, the only library I was missing in the end was Qt5Widgets.dll. I don't quite understand why this one is needed as I am actually using QML only for GUI.

                                      Anyway....for your reference I attach another screenshot of the final working deployment folder. Maybe somebody else can make some use of it in the future.

                                      Thanks again for your help......and your patience. ;-)

                                      !https://dl.dropboxusercontent.com/u/55395871/deployment_folder_working.PNG(deployment_folder_working)!

                                      1 Reply Last reply
                                      0
                                      • F Offline
                                        F Offline
                                        frankem
                                        wrote on last edited by
                                        #19

                                        Thanks man. I didn't know about the profiling of Dependency Walker but it looks very useful to especially find the libraries which are loaded at runtime.

                                        [quote author="dasun" date="1392478127"]some dll are load at runtime, I always use Dependency Walker with profiling. http://www.dependencywalker.com/help/html/hidm_execute.htm[/quote]

                                        1 Reply Last reply
                                        0
                                        • D Offline
                                          D Offline
                                          dasun
                                          wrote on last edited by
                                          #20

                                          You are welcome. Please mark this thread as solved :)

                                          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