Questions tagged [qwebchannel]

5 questions
1
vote
1 answer

Protobuf: Serialize/DeSerialize C++ to Js

I'm using protobuf to send/receive binary data from Cpp to Js and vice-versa and I'm using QWebChannel to communicate with the HTML client. Question: How to deserialize binary data in cpp which is serialized and sent from Js? Following I…
0
votes
0 answers

Python selenium - Call python method from javascript

Is it possible to call a python method from javascript in selenium. I am looking something like QWebChannel in PyQt5. I found how can i run javascript from python. Example: driver =…
Chris P
  • 2,059
  • 4
  • 34
  • 68
0
votes
0 answers

How do I get the variable x, which is the length of the input characters of an html field, into the mousePressEvent function?

How do I access the variable x, which is the length of the input characters of an html input field, into the mousePressEvent function? And the variable x is a dynamic variable that increases with the length of each character. I want to control the…
0
votes
0 answers

QWebEngine register object after initialization

Currently I'm running a HTML/Javascript page inside a QWebEngieView. After the initialization I want to add further JS code via the QWebChannel. Through this channel javascript code is inserted as well before the application is launched and…
JaWeilBaum
  • 67
  • 1
  • 1
  • 4
0
votes
1 answer

QWebChannel fails with condition (JS to C++)

Related to this answer : https://stackoverflow.com/a/62210448/16304747 I have tried the example and everything works fine. But I've found something interesting. If I had a condition, the QWebChannel seems to fail (JS to C++). Here is an example…
blzt
  • 11
  • 2