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. QtHtml5Script anyone?
Forum Updated to NodeBB v4.3 + New Features

QtHtml5Script anyone?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 3.1k 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
    Philius
    wrote on last edited by
    #1

    I wrote some JavaScript demos that emulate the QWidget hierarchy in html5.

    You can see a demo of it at

    http://www.philipashmore.com/html5/timeline/

    It's part "v3c-storyboad" (I couldn't call it "storyboard" because of a name clash).
    It's in Sourceforge, and I think it's ready to leave the nest.

    I think it's entirely possible that a QtWebkit browser with suitable plugins could step in
    and provide a real QWidget hierarchy, but other browsers could use the JavaScript
    implementation like in the demo.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Philius
      wrote on last edited by
      #2

      I created a project in SourceForge called QtJs.
      I've got other projects there so it seemed like the natural thing to do.

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        seems nice. Demo works well on Chrome 15/ Linux. Would be nice to see sources on SF or gitorious, but as I gather from SF page, they are coming. I can see events and signals/ slots working fine, too. Good job!

        (Z(:^

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Philius
          wrote on last edited by
          #4

          I just updated the projects description.
          v3c-storyboard is a SourceForge project with a "git" repo - you can get the sources now.

          http://sourceforge.net/projects/v3c-storyboard/

          I'll clone/split the repo soon - I've got a tricky bug in the next release and I'll add another test to solve it, called "sandbox-test".

          It will demonstrate how to debug mouse events even though you're using a JavaScript debugger.

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

            The "pixel-test" demo allows you to try out any of the widgets used in the other tests as well as most of the canvas methods.

            Just fill in the draw() function with your ideas, and you can roll the canvas operations forward and backward.

            The sandbox test will do this for keyboard + mouse events.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Philius
              wrote on last edited by
              #6

              The git repo plus a new version 0.10-02 is available in SourceForge

              http://sourceforge.net/projects/qtjs/

              Contributors welcome!

              I decided to just get it out there as the changes I'm working on are quite involved, but the result will be that the tests will start to look a lot like the QtScript demos.

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

                I started a new thread called qtjs.

                Since that's the name of the project, I thought it'd make sense to have a thread with the same name.

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  qtnext
                  wrote on last edited by
                  #8

                  good :)

                  1)- Do you have any plan to add LGPL licence to your project to allow commercial closed source (don't know if it's necessary because it's a web client side ?)

                  2)- Is there any interest in working with this project : https://gitorious.org/qwebservice
                  you can see thread "[Qt5-feedback] Web service functionality in Qt5" on Qt5-feedback mailing list ... It would be so good to have qml on the client side, and a bridge to qt on the server side :)

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Philius
                    wrote on last edited by
                    #9

                    For the server side, the the QtScript generator would be all you need.

                    http://code.google.com/p/qtscriptgenerator/

                    but it needs some work as not all the examples worked for me.

                    I thought that if I wanted to include the QtScript generator examples then it would have to be GPL as well.

                    I sent an email about this issue to Nokia and am awaiting feedback.

                    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