javascript documentation



  • Hi,

    I asked a question since hours ago and I got a prefect answer but it contained on a javascript class unavailable in Qt documentation which is really awful.

    Basically I really hate w3c documentation because I find it very confusing so I depend completely on Qt neat documentations but with unfortunately QML I discovered there are many things not documented well (or even missed) specially from javascript side (I'm not a fan of js at all).

    Do you know any full & fine written docs may help me to create Qt Quick apps easily just like Qt Widget docs?

    NOTE: In many cases I force to Google for hours about something not written in QML docs (or explained horribly) while I can find my needs quickly with Qt Widget docs only from Qt Creator with the magic button F1!


  • Moderators

    @tansgumus said in javascript documentation:

    Do you know any full & fine written docs may help me to create Qt Quick apps easily just like Qt Widget docs?

    Unfortunately, the Qt docs don't document JavaScript (ECMAScript) functions/classes because those are outside the scope of Qt.

    Perhaps you could try something like the Mozilla docs? https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest -- Note: The Mozilla docs will probably contain things that aren't supported in Qt, because QJSEngine currently supports ECMAScript 5. The Mozilla docs also include browser-specific API that are not part of the ECMAScript standard.



  • @tansgumus
    I second what @JKSH says. W3C docs is not very "user-oriented", W3Schools (which often comes up top in Google search) is awful, Mozilla docs are at least nicer.



  • Thank you guys for the responses,

    @JKSH Is there any plan to cover JavaScript docs by Qt?


  • Moderators

    @tansgumus said in javascript documentation:

    Is there any plan to cover JavaScript docs by Qt?

    Currently not.

    As I mentioned, the Qt Project has no control over the JavaScript API, so it will not document the JavaScript API either. However, QML classes and methods are fully documented -- if you find something missing, please file a bug report.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.