Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebChannel compatibility problems
Qt 6.11 is out! See what's new in the release blog

QWebChannel compatibility problems

Scheduled Pinned Locked Moved Solved QtWebEngine
7 Posts 3 Posters 3.5k 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
    gpioloco
    wrote on last edited by
    #1

    I tried to use the chat example with the following configuration:

    Complier : MinGW 5.3.0 32bit
    Qt version : Qt 5.7 MinGW 32bit

    The example works fine with the configuration above.

    My problem is that as soon as i use the following configuration :

    Compiler : Microsoft Visual c++ Complier 10.0 (x86)
    Qt version : Qt 5.4.1 (msvc2010_opengl)

    The browser consoler returns the following error when i reload the chatclient.html file :

    /invalid message received: {"data":{"chatserver":{"methods":[["deleteLater",3],["login",11],["logout",12],["sendMessage",13],["keepAliveResponse",14]],"properties":[[0,"objectName",[1,2],""],[1,"userList",[1,7],[]]],"signals":[["destroyed",0],["newMessage",5],["keepAlive",6],["userCountChanged",8]]}},"type":3}
    QWebChannel.transport.onmessage @ qwebchannel.js:92
    

    I used the exact same code with both configurations. Any suggestions how to fix this problem ??

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

      Hi and welcome to devnet,

      As silly as it may sound: use the same version of Qt ? You are comparing 5.7 and 5.4.1, which makes a big delta. You should rather check the equivalent Qt 5.7 for visual studio.

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

      G 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        As silly as it may sound: use the same version of Qt ? You are comparing 5.7 and 5.4.1, which makes a big delta. You should rather check the equivalent Qt 5.7 for visual studio.

        G Offline
        G Offline
        gpioloco
        wrote on last edited by
        #3

        @SGaist i cant really do that cause in the project i am planning to do i rely on other stuff thats needs to be complied with msvc2010

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

          In that case, you should go with the latest version of Qt still compilable with VS2010, which is likely 5.6 and is an LTS release.

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

          G 1 Reply Last reply
          0
          • SGaistS SGaist

            In that case, you should go with the latest version of Qt still compilable with VS2010, which is likely 5.6 and is an LTS release.

            G Offline
            G Offline
            gpioloco
            wrote on last edited by
            #5

            @SGaist Can you send me a download link i cant find it on : https://www.qt.io/download-open-source/#section-2

            mrjjM 1 Reply Last reply
            0
            • G gpioloco

              @SGaist Can you send me a download link i cant find it on : https://www.qt.io/download-open-source/#section-2

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @gpioloco
              hi i could only find
              http://download.qt.io/archive/qt/5.5/5.5.1/qt-opensource-windows-x86-msvc2010-5.5.1.exe

              Please have a look
              http://download.qt.io/archive/qt/

              G 1 Reply Last reply
              2
              • mrjjM mrjj

                @gpioloco
                hi i could only find
                http://download.qt.io/archive/qt/5.5/5.5.1/qt-opensource-windows-x86-msvc2010-5.5.1.exe

                Please have a look
                http://download.qt.io/archive/qt/

                G Offline
                G Offline
                gpioloco
                wrote on last edited by
                #7

                @mrjj THANK YOU !
                The version you linked worked

                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