Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt / Html 5
Forum Updated to NodeBB v4.3 + New Features

Qt / Html 5

Scheduled Pinned Locked Moved Mobile and Embedded
12 Posts 4 Posters 6.4k 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.
  • J Offline
    J Offline
    jaak
    wrote on last edited by
    #3

    Thanks for the answers. I just wanted to know if I can develop a hybrid app (c++ / html5) using Qt if needed. From your answer, it seems not easy. I know of corodova. But what I wanted to know was that if it is possible with Qt. Html5 / css is what the designers know. So that will be most probably used over Qml.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daliusd
      wrote on last edited by
      #4

      That's up to you. If your designer creates CSS and HTML then you are free to choose HTML5. Usually designers just draw how UI should look like and it is up for developers to write code corresponding to the design. In that case QML is better option IMHO.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jaak
        wrote on last edited by
        #5

        This is not about whether Qml or html is better. I specifically wanted to know if Html / c++ is possible with Qt. Some other frameworks like Mosync allow this. And about html being choosen over Qml, I was not generalizing. I was thinking about the projects I'am going to work on. Sorry for not being clear. For lots of work, and depending on the skillset of the company Qml may be a better choice.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          daliusd
          wrote on last edited by
          #6

          As I have said - possible but most probably you will hit the wall pretty fast somewhere (e.g. if you want to upload/download file). That's my opinion - maybe somebody knows about secret ways I'm not aware about.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jaak
            wrote on last edited by
            #7

            Its ok if the answer is No. I just wanted to know if it is possible.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #8

              Actually it is pretty straight forward to expose QObjects to the web engine. Javascript can then call slots/Q_INVOKEABLE methods from JS. So you can expose C++ functionality to JS in a pretty straight forward way.

              At least that was the case in Qt 4.6, which is the last time I tried that:-)

              P 1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #9

                I really do not see why you would want to do this though: The resulting app is Qt specific anyway, why not use QML then in favor of HTML5?

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jaak
                  wrote on last edited by
                  #10

                  [quote author="Tobias Hunger" date="1360741742"]I really do not see why you would want to do this though: The resulting app is Qt specific anyway, why not use QML then in favor of HTML5?[/quote]

                  Being part of Qt, I would have loved to use Qml over html / css. But that decision is out of my control.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    daliusd
                    wrote on last edited by
                    #11

                    [quote author="Jayakrishnan.M" date="1360824618"][quote author="Tobias Hunger" date="1360741742"]I really do not see why you would want to do this though: The resulting app is Qt specific anyway, why not use QML then in favor of HTML5?[/quote]

                    Being part of Qt, I would have loved to use Qml over html / css. But that decision is out of my control.[/quote]

                    You could still make presentation for designers. They might love QML more than CSS. Of course there is question what platforms you are going to support, what timeframe we are talking about and etc. but let's not forget that Digia promised to support Android and iOS in the future as well and actually future in mobile world is very very uncertain.

                    1 Reply Last reply
                    0
                    • T tobias.hunger

                      Actually it is pretty straight forward to expose QObjects to the web engine. Javascript can then call slots/Q_INVOKEABLE methods from JS. So you can expose C++ functionality to JS in a pretty straight forward way.

                      At least that was the case in Qt 4.6, which is the last time I tried that:-)

                      P Offline
                      P Offline
                      pankaj4288
                      wrote on last edited by
                      #12

                      @tobias.hunger
                      was it using Qwebkit or Qwebengine ??
                      I am struggling to do the same, i.e. make js a bridge between my html and c++. I see a lot of examples using Qwebkit but none related to QwebEngine. As Qwebkit is deprecated, I can't use it.

                      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