Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    GUI creation guidance / HTML+JS?

    General and Desktop
    gui html javascript
    2
    3
    1262
    Loading More Posts
    • 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.
    • DavideBarranca
      DavideBarranca last edited by

      Hello,
      I'm a JS developer collaborating with C++ people in building image processing software.

      I'm afraid C-like languages are not my own business (zero problems in admitting that), yet I've been told that Qt supports the creation of HTML/JS GUIs. My task would be to design them and, I would say, write the JS code that acts as a glue between the UI and the C++ layer.

      I looked at the Qt framework documentation, but at first it is... a tiny bit overwhelming – possibly because I've a very different background from the standard Qt developer. I've seen there is a Qt WebEngine that is very likely what I will have to deal with, but it's not at all clear to me how to get started.

      First aid suggestions are welcome; my needs are way too basics, so I guess a dedicated list of Doc links will be a good starting point – yet since I'm not shy the kind of questions I have, in random order, would be like:

      – Is my task feasible, or I would need at least some C++ skills to set up things?
      – Can I start with a blank Qt project, or I need a half-baked one from my C++ colleagues?
      – Is there an IDE for building HTML/JS interfaces?
      – Etc. etc.

      I'm not eager to look like a complete newbie in this subject, but this is what I currently am: my C++ friends are presenting me the task as somehow too simple to be realistic (like "just tweak some CSS files from a template we have and it'll be OK").
      Having built lots of Photoshop panels over the years (HTML/CSS with JS acting as a glue from the Chromium Embedded Framework and the PS layer – a quite similar scenario, apparently) I strongly suspect that their view is way too optimistic :-)

      Thank you in advance for any help you can provide and best regards

      – Davide Barranca

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @DavideBarranca last edited by raven-worx

        @DavideBarranca
        yes you can start simply with Qt WebEngine.
        For the communication between JS and C++ you need 2 more modules:

        1. Qt WebChannel
        2. Qt WebSocket

        the doc pages are also showing some examples to get you started.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        DavideBarranca 1 Reply Last reply Reply Quote 1
        • DavideBarranca
          DavideBarranca @raven-worx last edited by

          @raven-worx Thank you for pointing me to the proper documentation pages – I'll have a look at them asap.
          If the project actually takes off, I'll be a regular in the forums :-)

          Best regards,
          – Davide

          1 Reply Last reply Reply Quote 0
          • First post
            Last post