Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator fails to load Qwt plugin (64-bit)
Forum Updated to NodeBB v4.3 + New Features

Qt Creator fails to load Qwt plugin (64-bit)

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
creator 4.3.164-bit pluginsdesigner
5 Posts 4 Posters 3.0k 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.
  • frodebjF Offline
    frodebjF Offline
    frodebj
    wrote on last edited by
    #1

    Hi,
    I have installed Qt 5.9.1 on Windows 7. The only installed kit is "Desktop Qt 5.9.1 MSVC2015 64-bit". Qwt-6.1.3 (64-bit) is built and installed.

    I have created a test widget using Qwt. It builds and runs without problems.

    However, when trying to modify the form using Qt Creator 4.3.1, the Qwt plugin fails to load. The Qwt widgets are not visible in the side panel. "Tools->Form Editor->About Qt Designer Plugins" reports:

    "Cannot load library C:\Qwt-6.1.3\plugins\designer\qwt_designer_plugin.dll: %1 is not a valid Win32 application"

    If I run Qt Designer (64-bit) from the Start menu ("Qt 5.9.1->5.9.1->MSVC 2015 (64-bit)->Designer"), the Qwt plugin is loaded correctly. Qwt is displayed in the side panel and can be added to the form.

    I need Qt Creator to load 64-bit plugins. Can Qt Creator be setup to load 64-bit plugins?

    jsulmJ 1 Reply Last reply
    0
    • frodebjF Offline
      frodebjF Offline
      frodebj
      wrote on last edited by
      #4

      Thanks to @jsulm and @SGaist for explaining the mismatch problem with the plugin.

      I have implemented the following work-around/solution:

      1. Built and deployed a 32-bit Qwt plugin for Qt Creator.
      2. Built a 64-bit Qwt library (.lib).
      3. Built my test widget as a 64-bit application (linking in the 64-bit Qwt library).

      Works for me :-)

      1 Reply Last reply
      1
      • frodebjF frodebj

        Hi,
        I have installed Qt 5.9.1 on Windows 7. The only installed kit is "Desktop Qt 5.9.1 MSVC2015 64-bit". Qwt-6.1.3 (64-bit) is built and installed.

        I have created a test widget using Qwt. It builds and runs without problems.

        However, when trying to modify the form using Qt Creator 4.3.1, the Qwt plugin fails to load. The Qwt widgets are not visible in the side panel. "Tools->Form Editor->About Qt Designer Plugins" reports:

        "Cannot load library C:\Qwt-6.1.3\plugins\designer\qwt_designer_plugin.dll: %1 is not a valid Win32 application"

        If I run Qt Designer (64-bit) from the Start menu ("Qt 5.9.1->5.9.1->MSVC 2015 (64-bit)->Designer"), the Qwt plugin is loaded correctly. Qwt is displayed in the side panel and can be added to the form.

        I need Qt Creator to load 64-bit plugins. Can Qt Creator be setup to load 64-bit plugins?

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

        @frodebj If QtCreator is built as 32bit (which is the case if you use Qt Online Installer) then no you cannot use 64bit plug-ins - this just cannot work. You would need QtCreator 64 bit build.

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

        1 Reply Last reply
        2
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #3

          Hi and welcome to devnet,

          To add to @jsulm, you need to use the same compiler/Qt version as Qt Creator in order to build a plugin for it that it will be able to load.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • frodebjF Offline
            frodebjF Offline
            frodebj
            wrote on last edited by
            #4

            Thanks to @jsulm and @SGaist for explaining the mismatch problem with the plugin.

            I have implemented the following work-around/solution:

            1. Built and deployed a 32-bit Qwt plugin for Qt Creator.
            2. Built a 64-bit Qwt library (.lib).
            3. Built my test widget as a 64-bit application (linking in the 64-bit Qwt library).

            Works for me :-)

            1 Reply Last reply
            1
            • S Offline
              S Offline
              sonolive56
              wrote on last edited by
              #5

              Works fine for me too ;-)
              thx a lot @frodebj

              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