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. Using Qt Quick in MuseScore plugin

Using Qt Quick in MuseScore plugin

Scheduled Pinned Locked Moved QML and Qt Quick
qtquickmusescoreqmlwebsocketqt5websockets
7 Posts 2 Posters 4.2k 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.
  • T Offline
    T Offline
    TwentySix
    wrote on 14 Sept 2015, 08:00 last edited by
    #1

    Hello.
    MuseScore uses qml for writing plugins.
    In program folder I found C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll
    But when I'm trying write plugin with WebSockets, I'm getting error:

    First, I declare:

    import Qt.WebSockets 1.0

    After that, when I trying to run code, I get:

    creating component failed
    line 9: plugin cannot be loaded for module "Qt.WebSockets": Cannot load library C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll: Не найден указанный модуль. (Module not found)

    --
    I'm download Qt5WebSockets.dll and put in C:\Programs\MuseScore 2\bin
    And error changed

    creating component failed
    line 9: plugin cannot be loaded for module "Qt.WebSockets": Cannot load library C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll: Не найдена указанная процедура. (Procedure not found)

    how to get the WebSockets work?

    J 1 Reply Last reply 14 Sept 2015, 10:01
    0
    • T TwentySix
      14 Sept 2015, 08:00

      Hello.
      MuseScore uses qml for writing plugins.
      In program folder I found C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll
      But when I'm trying write plugin with WebSockets, I'm getting error:

      First, I declare:

      import Qt.WebSockets 1.0

      After that, when I trying to run code, I get:

      creating component failed
      line 9: plugin cannot be loaded for module "Qt.WebSockets": Cannot load library C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll: Не найден указанный модуль. (Module not found)

      --
      I'm download Qt5WebSockets.dll and put in C:\Programs\MuseScore 2\bin
      And error changed

      creating component failed
      line 9: plugin cannot be loaded for module "Qt.WebSockets": Cannot load library C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll: Не найдена указанная процедура. (Procedure not found)

      how to get the WebSockets work?

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 14 Sept 2015, 10:01 last edited by
      #2

      @TwentySix said:

      line 9: plugin cannot be loaded for module "Qt.WebSockets": Cannot load library C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll: Не найдена указанная процедура. (Procedure not found)

      Usually, that means you are using the wrong version of the DLL.

      Make sure your DLLs are all built with the same compiler and the same Qt version.

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

      T 1 Reply Last reply 14 Sept 2015, 13:35
      0
      • J JKSH
        14 Sept 2015, 10:01

        @TwentySix said:

        line 9: plugin cannot be loaded for module "Qt.WebSockets": Cannot load library C:/Programs/MuseScore 2/qml/Qt/WebSockets/declarative_qmlwebsockets.dll: Не найдена указанная процедура. (Procedure not found)

        Usually, that means you are using the wrong version of the DLL.

        Make sure your DLLs are all built with the same compiler and the same Qt version.

        T Offline
        T Offline
        TwentySix
        wrote on 14 Sept 2015, 13:35 last edited by TwentySix
        #3

        @JKSH
        I found right dll file, and now code compiling without errors.
        But when I add this:

          WebSocket {
            id: socket
          }
        

        Program crash and I'm getting messagebox with:
        Microsoft Visual C++ Runtime Library
        This application has requested the Runtime to terminate it in an unusual way.
        Please contact the application's support team for more information.
        ОК

        APPCRASH
        MuseScore.exe
        Qt5Core.dll

        J 1 Reply Last reply 14 Sept 2015, 15:02
        0
        • T TwentySix
          14 Sept 2015, 13:35

          @JKSH
          I found right dll file, and now code compiling without errors.
          But when I add this:

            WebSocket {
              id: socket
            }
          

          Program crash and I'm getting messagebox with:
          Microsoft Visual C++ Runtime Library
          This application has requested the Runtime to terminate it in an unusual way.
          Please contact the application's support team for more information.
          ОК

          APPCRASH
          MuseScore.exe
          Qt5Core.dll

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 14 Sept 2015, 15:02 last edited by JKSH
          #4

          @TwentySix said:

          I found right dll file

          1. Where did you get this DLL from?
          2. What version of Qt was used to build MuseScore itself?
          3. What compiler was used to build MuseScore itself?

          EDIT: I found out that MuseScore 2.0.2 was compiled using Qt 5.4.2 and MinGW 4.9.1. You must get the DLLs from that version of Qt. You must also Qt 5.4.2 and MinGW 4.9.1 to build your plugin. Visual Studio is not compatible.

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

          T 1 Reply Last reply 14 Sept 2015, 18:10
          0
          • J JKSH
            14 Sept 2015, 15:02

            @TwentySix said:

            I found right dll file

            1. Where did you get this DLL from?
            2. What version of Qt was used to build MuseScore itself?
            3. What compiler was used to build MuseScore itself?

            EDIT: I found out that MuseScore 2.0.2 was compiled using Qt 5.4.2 and MinGW 4.9.1. You must get the DLLs from that version of Qt. You must also Qt 5.4.2 and MinGW 4.9.1 to build your plugin. Visual Studio is not compatible.

            T Offline
            T Offline
            TwentySix
            wrote on 14 Sept 2015, 18:10 last edited by
            #5

            @JKSH said:

            1. Where did you get this DLL from?
            2. What version of Qt was used to build MuseScore itself?
            3. What compiler was used to build MuseScore itself?

            EDIT: I found out that MuseScore 2.0.2 was compiled using Qt 5.4.2 and MinGW 4.9.1. You must get the DLLs from that version of Qt. You must also Qt 5.4.2 and MinGW 4.9.1 to build your plugin. Visual Studio is not compatible.

            I downloaded DLL from here > http://rpm.pbone.net/index.php3/stat/4/idpl/30656663/dir/fedora_20/com/mingw32-qt5-qtwebsockets-5.4.1-1.fc20.noarch.rpm.html
            MuseScore don't need compile plugins in a DLL.
            Plugins created directly in program and stored as qml files.
            If you have installed MuseScore, you can create or open existing plugins from menu - Plugins > Plugin Creator

            J 1 Reply Last reply 15 Sept 2015, 03:30
            0
            • T TwentySix
              14 Sept 2015, 18:10

              @JKSH said:

              1. Where did you get this DLL from?
              2. What version of Qt was used to build MuseScore itself?
              3. What compiler was used to build MuseScore itself?

              EDIT: I found out that MuseScore 2.0.2 was compiled using Qt 5.4.2 and MinGW 4.9.1. You must get the DLLs from that version of Qt. You must also Qt 5.4.2 and MinGW 4.9.1 to build your plugin. Visual Studio is not compatible.

              I downloaded DLL from here > http://rpm.pbone.net/index.php3/stat/4/idpl/30656663/dir/fedora_20/com/mingw32-qt5-qtwebsockets-5.4.1-1.fc20.noarch.rpm.html
              MuseScore don't need compile plugins in a DLL.
              Plugins created directly in program and stored as qml files.
              If you have installed MuseScore, you can create or open existing plugins from menu - Plugins > Plugin Creator

              J Offline
              J Offline
              JKSH
              Moderators
              wrote on 15 Sept 2015, 03:30 last edited by
              #6

              @TwentySix said:

              I downloaded DLL from here > http://rpm.pbone.net/index.php3/stat/4/idpl/30656663/dir/fedora_20/com/mingw32-qt5-qtwebsockets-5.4.1-1.fc20.noarch.rpm.html

              That is not an official Qt package.

              Try the official one: http://download.qt.io/archive/qt/5.4/5.4.2/qt-opensource-windows-x86-mingw491_opengl-5.4.2.exe

              @TwentySix said:

              @JKSH said:

              1. Where did you get this DLL from?
              2. What version of Qt was used to build MuseScore itself?
              3. What compiler was used to build MuseScore itself?

              MuseScore don't need compile plugins in a DLL.

              But your Qt WebSockets DLLs need to be compatible with MuseScore's other DLLs. That's why I asked about your version and compiler.

              Your program probably crashed because you downloaded incompatible DLLs.

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

              T 1 Reply Last reply 15 Sept 2015, 08:04
              0
              • J JKSH
                15 Sept 2015, 03:30

                @TwentySix said:

                I downloaded DLL from here > http://rpm.pbone.net/index.php3/stat/4/idpl/30656663/dir/fedora_20/com/mingw32-qt5-qtwebsockets-5.4.1-1.fc20.noarch.rpm.html

                That is not an official Qt package.

                Try the official one: http://download.qt.io/archive/qt/5.4/5.4.2/qt-opensource-windows-x86-mingw491_opengl-5.4.2.exe

                @TwentySix said:

                @JKSH said:

                1. Where did you get this DLL from?
                2. What version of Qt was used to build MuseScore itself?
                3. What compiler was used to build MuseScore itself?

                MuseScore don't need compile plugins in a DLL.

                But your Qt WebSockets DLLs need to be compatible with MuseScore's other DLLs. That's why I asked about your version and compiler.

                Your program probably crashed because you downloaded incompatible DLLs.

                T Offline
                T Offline
                TwentySix
                wrote on 15 Sept 2015, 08:04 last edited by
                #7

                @JKSH
                Thank you.
                Now WebSockets work :)

                1 Reply Last reply
                0

                1/7

                14 Sept 2015, 08:00

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved