Control a desktop application from web
-
I built a music player with a UI in QT .... but now I need to control the user interface from the internet ... like I can do this ... I'm new to these issues
-
You can't directly. That would be a huge security breach if a web page could control anything outside the browser.
There are few ways to achieve similar effect.
One that few game stores use for example is a custom browser plugin and an embedded control on the webpage. The page talks to the plugin. The plugin talks to your app. The obvious downside is that the user needs to install these plugins and you need to maintain a version for at least the most popular browsers. Mobile browsers are off limits in that case.
Another way is to communicate through the server. Your page would send messages to the server and the app would occasionally poll it. This can be of course two-way. Some popular music services like spotify do it this way.
-
i can create a new application of qt based in html5 to do mi aplication
-
Sorry, is that a question or a statement?
-
question
-
If you have to - yes, using WebKit module, but I can't see any benefit over widgets or QML.
You can connect to a server without creating webpages using QNetworkAccessManager. -
is a question ... i just need to hace remote acces of my aplication
-
Hi,
The simplest setup I can think of is a server using e.g. QTcpServer that would do IPC through e.g. QLocalServer/Socket with your application.