Run a Web Application in Desktop Env
-
Hello There ,
I am newbie here , it could be stupid question but i really need your advices .
I have a complicated Javascript module and one HTML page as UI for it.
This HTML must run on WebServer to works properly, Actually it doesn't need any request and response Javascript only calculate values in a "Worker" loop.
Here i need to implement operation on Desktop Application both Windows and Mac, i already read topics for QWebChannel and QHttpServer but i am not sure which one i should use.I need to know which way is better for my point,
Thank you -
Hello There ,
I am newbie here , it could be stupid question but i really need your advices .
I have a complicated Javascript module and one HTML page as UI for it.
This HTML must run on WebServer to works properly, Actually it doesn't need any request and response Javascript only calculate values in a "Worker" loop.
Here i need to implement operation on Desktop Application both Windows and Mac, i already read topics for QWebChannel and QHttpServer but i am not sure which one i should use.I need to know which way is better for my point,
Thank you -
@Discode
Did you look at putting a QWebEngineView on a dialog widget or a window widget?
Docs are here -
@kenchan
My Problem is all of my JS and HTML files are local , i tried QWebEngineView but it can't load Scripts locally -
@Discode
You should be able to, I do. I use QUrl::fromLocalFile(...) to give it a url. Also there are several settings for it that might effect what you can and can't do with it.