Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Can't get QWebchannel demos to work
Forum Updated to NodeBB v4.3 + New Features

Can't get QWebchannel demos to work

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 5 Posters 3.1k 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.
  • P Offline
    P Offline
    pfmaynard
    wrote on last edited by
    #1

    Using VS2013 (or QtCreator) , Win 7 64 bit. Using ChatServer and ChatClient-html. Start the server, then start chatclient.html in Chrome. I can type in a name in the client and press login, nothing shows up in the console window except "Keep Alive Check()". The client "Users" list doesn't change. If I put breakpoints in the server (when running on VS2013), I can see lots of activity. But after the server sendMessage() function, if I catch this in Chrome in qwebchannel.js in the "this.transport.onmessage = function (message)" method, it always goes to the default case and prints out "invalid message received". The message sent was something like "{"data":{"chatserver":{"methods":[["deleteLater",3], ["login", 11], ...". This looks reasonable to me.

    Has anyone got the demos to work on Windows? Any tips? Or wait for 5.4.1?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daniele
      wrote on last edited by
      #2

      Same here, with Ubuntu...

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vova120880
        wrote on last edited by
        #3

        hi, You need download qwebchannel.js file from qt "5.4" branch, not "dev".
        https://github.com/qtproject/qtwebchannel/tree/5.4/src/webchannel

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cdietz
          wrote on last edited by
          #4

          Also, when you installed the sources along with the rest of Qt 5.4.0, the file can be found here:
          @<QtDir>/Src/qtwebchannel/src/webchannel/qwebchannel.js@

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nicesw123
            wrote on last edited by nicesw123
            #5

            Yeah, pretty frustrating if examples don't work out of the box.

            Filed it as an issue here

            qwebchannel.js can be found in the following directory: http://code.qt.io/cgit/qt/qtwebchannel.git/tree/src/webchannel

            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