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.7k 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.
  • 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
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #21

            Glad to hear that you've succeeded! And thank you for sharing your final setup with the community.

            [quote author="frankem" date="1392480026"]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. [/quote]Currently, Qt's styling capabilities are all located in the Qt Widgets module. Qt Quick Controls use these styles to look like native controls on your platform.

            I'd imagine that the styling code would be refactored in Qt 6, so that we don't have Qt Quick apps relying on Qt Widgets code anymore. (The code can't be moved Qt 5.x unfortunately, because that would break binary compatibility)

            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
              #22

              [quote author="JKSH" date="1392517394"]Currently, Qt's styling capabilities are all located in the Qt Widgets module. Qt Quick Controls use these styles to look like native controls on your platform.[/quote]

              Ah, I see. Thanks for this clarification.

              Unfortunately, I am not able to mark the thread as "SOLVED" as I am not the owner.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andrew8165
                wrote on last edited by
                #23

                I am running Visual Studio 2012 64 bit with QT 5.2.1 and I am running into this problem also. I saw the problem with both the OPEN GL version and the non Open GL version.

                I have enclosed my screen shot, I also took the time to make sure that the VS 2012 redistributables were in place. Any Suggestions?

                ML debugging is enabled. Only use this in a safe environment.
                rc:/qml/main.qml:2:1: plugin cannot be loaded for module "QtQuick.Controls": Ca
                not load library C:/Users/Andrew/Documents/GitHub/deploy/bin_debug/QtQuick/Cont
                ols/qtquickcontrolsplugind.dll: The specified module could not be found.
                lass QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(void):
                ould not initialize egl display: error 12289

                tQuick: failed to create OpenGL context

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

                  Does this happen while you are running your application from Qt Creator or from a deployment folder?

                  Is the file C:/Users/Andrew/Documents/GitHub/deploy/bin_debug/QtQuick/Controls/qtquickcontrolsplugind.dll in place?

                  Try to use the windeployqt.exe program, which gives at least a good starting point for deployment.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andrew8165
                    wrote on last edited by
                    #25

                    Deployment Folder only. I will take a look at it. Thank you.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andrew8165
                      wrote on last edited by
                      #26

                      I tried it and there was a problem. When I renamed my C:\qt to something else, it did not work and I got the white screen. When I had the C:\qt the deployment was correct. What would I be missing? I copied the guide and everything?

                      I noticed that someone else did a 32 bit deployment in WINDOWS 7 and it worked. I was using QT 5.2.1 64 Bit with Open GL for Visual Studio 2012.

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

                        I've only done deployment on Win7 64-bit using Mingw. But the fact that you get a white screen has most probably something to do with missing plugins.

                        Did you use the windeployqt.exe?

                        You can try to use Dependency Walker [1]. This will show you all missing DLL's for your binary. From there you can run your binary in a profiling mode (Profile --> Start Profiling [F7]). This should also give you the missing plugin DLL's which get loaded dynamically during startup.

                        PS.: Have you also added Qt5Widgets.dll to your deployment folder? Even if you are only using QML, I found out that Qt5Widgets is still needed.

                        [1] http://www.dependencywalker.com/

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

                          [quote author="andrew8165" date="1397583674"]When I renamed my C:\qt to something else, it did not work and I got the white screen. When I had the C:\qt the deployment was correct. What would I be missing? I copied the guide and everything?[/quote]That means you forgot to copy some files. Qt Quick applications need a combination of .dll files, .qml files and qmldir files.

                          This is the fastest way to get it working: 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
                          0
                          • A Offline
                            A Offline
                            andrew8165
                            wrote on last edited by
                            #29

                            I already tried dependency walker and I copied all the necessary DLL's . Again there is different behavior with Windows 8.1 in 64 bit with QT 5.2.1 with Open GL then other distributions. Unfortunately this didn't solve the problem.

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

                              [quote author="andrew8165" date="1397644905"]I already tried dependency walker and I copied all the necessary DLL's . Again there is different behavior with Windows 8.1 in 64 bit with QT 5.2.1 with Open GL then other distributions. Unfortunately this didn't solve the problem.[/quote]Did you try the "Quick and Dirty" deployment in the link I posted?

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

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                andrew8165
                                wrote on last edited by
                                #31

                                Yes, It did not work properly.

                                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