I just download the last version of qt 5.4 and i would like to try the standalone exemple for qwebchannel.
During the compilation i have the error:
:-1: erreur : [qwebchannel.js] Error 1
The exampleassets.pri talk about a qwebchannel.js file but the is not this file in the source.
Is there a way to make this example work.
Hi and welcome to devnet,
That file should be found in src/webchannel/qwebchannels.js
It's not in the windows mingw version.
So i download the split package qtwebchannel-opensource-src-5.4.0.zip
There is no error in compilation but it doesn't work :(
You'll have to be more specific, what doesn't work ?
I just started my journey with QT and I stump on this. It looks like it is bug in windows version uri lunching with file schema and additional query. If uri is lunched as file it appears in browser as:
and browser console reports
index.html:14 Uncaught TypeError: Cannot read property '1' of null
as webChannelBaseUrl wasn't transfered
but if you force scheme to http browser opens:
so Query was respected this time
first off, not every standard installation seems to contain qwebchannel.js
my Mac-Clang version did not have that so I had to download from
and put it inside 'standalone' directory
second problem I ran into was, after qmake - build all - run,
My Safari console shows:
TypeError: null is not an object (evaluating '/[?&]webChannelBaseUrl=([A-Za-z0-9-:/.]+)/.exec(location.search)')
which stops the chat client form working.
I think this pretty much covers the problems with the example.