Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Control a desktop application from web

Control a desktop application from web

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    paul_espinosa
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        paul_espinosa
        wrote on last edited by
        #3

        i can create a new application of qt based in html5 to do mi aplication

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Sorry, is that a question or a statement?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            paul_espinosa
            wrote on last edited by
            #5

            question

            1 Reply Last reply
            0
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                paul_espinosa
                wrote on last edited by
                #7

                is a question ... i just need to hace remote acces of my aplication

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved