Results 1 to 3 of 3

Thread: is JavaScript necessary for QML???

  1. #1
    Join Date
    Aug 2014
    Posts
    28
    Thanks
    15
    Qt products
    Qt5
    Platforms
    Windows

    Question is JavaScript necessary for QML???

    hi all
    i read from many users that some of them says YES and Other ones Says NO.
    i want to know is javascript or css is need to learn qml??
    thank you in advance
    Last edited by ramin.lich; 22nd November 2014 at 18:40.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: is JavaScript necessary for QML???

    The answer to this is not a straight forward yes or no.

    The QML engine is built around a JavaScript engine, so QML always has access to that.
    In this sense it is a necessary dependency.

    But as a developer you don't need to use JavaScript as a programming language in order to work with QML.
    I.e. the amount of JavaScript code that one would at worst really need is calling an existing function or doing conditional assignments.

    Mght even be possible without these two but a lot less convenient and very atypical for QML usage.

    You definitely don't need CSS, that is a HTML related technology.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    ramin.lich (24th November 2014)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: is JavaScript necessary for QML???

    I agree however if you start doing complex things with QML, knowledge of how JavaScript works is a valuable skill.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    ramin.lich (24th November 2014)

Similar Threads

  1. Using Javascript in Qt
    By sipahi in forum Newbie
    Replies: 3
    Last Post: 31st January 2013, 16:34
  2. How to get javascript var value in qt
    By ram4soft in forum Qt Programming
    Replies: 0
    Last Post: 12th April 2011, 15:55
  3. Help with QML, JavaScript and C++
    By chetu1984 in forum Qt Quick
    Replies: 5
    Last Post: 14th February 2011, 22:42
  4. Replies: 9
    Last Post: 29th November 2010, 12:12
  5. Javascript
    By ale301168 in forum Qt Programming
    Replies: 0
    Last Post: 6th September 2008, 23:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.