Questions tagged [qtwebchannel]

Qt WebChannel enables peer-to-peer communication between a server (QML/C++ application) and a client (HTML/JavaScript or QML application).

26 questions
1
vote
1 answer

QWebChannel new client gets initial state?

For better or worse I was exploring using QWebChannel as a method for creating networked video games. I've run into a problem where as new.clients join, they recieve the game state as it was originally, without any incremented changes that other…
Ben Hoff
  • 1,058
  • 1
  • 11
  • 24
1
vote
1 answer

storing lat long on mouse click from JS to PyQt5

I'm trying to store lat/lng on mouse click to geometry Point. So basically when user clicks on map i need to get those coordinates(lat/lng) and store them to variable for example point = Point(lat, lng)so i can calculate nearest geometry and pull…
1
vote
1 answer

How to pass back value from JS to Python

I wanted to display a 2D Map with Python and then do something with the coordinates of the coursor in the Python code. I cant get the coordinates to the Python Part however. Heres my code: from PyQt5.QtCore import * from PyQt5.QtGui import * from…
KASA
  • 15
  • 7
1
vote
1 answer

How to pass info from JS to Python using QWebChannel

I have building a GUI in Python through PyQt5. I am showing a web browser with a google maps page. The user is supposed to move the marker and my program should process the coordinates of the marker. Therefore I have to pass the coordinates from JS…
Carlo Bianchi
  • 115
  • 4
  • 15
0
votes
1 answer

How to recieve dynamic variable from qml with QT webchannel in html side?

I currently can send constant value with webchannel from qml file to html and show value. but when i send a dynamic variable lick clock time initial value of variable displays in html and it can not updated over time. i used a dynamic graph to…
0
votes
0 answers

QtWebEngineProcess immediately closed after start

I have writed a Hellow World program using QtWebEngineView: QWebEngineView *web = new QWebEngineView(this); ui->verticalLayout->addWidget(web); web->setUrl(QUrl("http://www.google.com")); web->show(); The program works as I expected, The problem is…
mh taqia
  • 3,506
  • 1
  • 24
  • 35
0
votes
1 answer

Access Javascript class object with Qt runJavaScript function

As I'm new into javascript/HTML and recently I started a project using Qt QWebEngineView. I've been stuck for some time on finding the best way to share data from the C++ program to Javascript. So far the only way I was able to send data to the…
0
votes
1 answer

QWebChannel: crash on construction when running outside of QtCreator

When I try to run my programm outside the QtCreator, the code crashes, when new QWebChannel(this) is called. I already checked DLL dependencies, but can't find the difference between running it from within the IDE and outside of it. MyView::MyView()…
Myon
  • 937
  • 13
  • 23
0
votes
0 answers

control a Qt/C++/QML GUI application running on a embedded device from a remote client application?

Scenario: We have a Qt application(Qt 5.9.5,C++,QML,Ubuntu) running on a device (deals with telecommunications), which can also be viewed in a browser using webserver. All the operations done manually on the device have been visualized on the…
0
votes
0 answers

How to wait on asynchronous javascript function without async/await support?

This is something related to porting from Qt Webkit to Qt Webengine. The following code works well in webkit.