Results 1 to 6 of 6

Thread: Starting with QML

  1. #1
    Join Date
    Jun 2010
    Posts
    142
    Thanks
    11
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Starting with QML

    I started reading some of the QML tutorials, and it seems pretty interesting. There is just one big stumbling block for me that isn't explained in the tutorials: What does QML actually mean? What actually are those "Rectangle", "mouseArea", etc. elements?

    Also, slightly unrelated, but what's the purpose of QML? To me it seems like first you have to reinvent all the widgets and then still have them not fit in with the platform look and feel. Basically, what is QML's place compared to "normal" Qt GUI widgets? It it for special purposes only, or does it work with Qt/C++?

  2. #2
    Join Date
    Jun 2010
    Posts
    142
    Thanks
    11
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Starting with QML

    Anyone?
    10 char limit

  3. #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: Starting with QML

    Quote Originally Posted by MTK358 View Post
    What does QML actually mean?
    Qt Modeling Language? Just a guess...

    What actually are those "Rectangle", "mouseArea", etc. elements?
    They are objects.

    Also, slightly unrelated, but what's the purpose of QML?
    To provide a declarative language of doing fancy things that can be exploited by designers and not only programmers. It's also sometimes being referred to as "flash-killer". Although prematurely, in my opinion.

    To me it seems like first you have to reinvent all the widgets and then still have them not fit in with the platform look and feel.
    If you are after widgets and platform look and feel then QtQuick is probably not for you.

    Basically, what is QML's place compared to "normal" Qt GUI widgets?
    It's a parallel technology.

    It it for special purposes only, or does it work with Qt/C++?
    It can cooperate with C++. You can consider it a similar relationship as between Qt/C++ and QtScript. Just don't extend this comparison to the area of functionality, QtQuick and QtScript have a totally different area of use (though they both use JavaScript).
    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.


  4. #4
    Join Date
    Jun 2010
    Posts
    142
    Thanks
    11
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Starting with QML

    I'm kind of getting it now. I'm just not completely sure what QML syntax semantically means.

    And I see where it could be useful as a custom part of a normal GUI application. Apart from that, I really wonder what's the use of a non-standard looking GUI (maybe it's just my bad memories of Widnows Media Center. I couldn't force to just plain watch TV without IR controllers, TV guides, etc.!!! ).

  5. #5
    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: Starting with QML

    Quote Originally Posted by MTK358 View Post
    Apart from that, I really wonder what's the use of a non-standard looking GUI
    One thing that immediately comes to my mind is games. Apart from that it's probably most useful for embedded and mobile systems where you have a custom look most of the times anyway.
    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.


  6. #6
    Join Date
    Jun 2010
    Posts
    142
    Thanks
    11
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Starting with QML

    Quote Originally Posted by wysota View Post
    One thing that immediately comes to my mind is games.
    Haven't thought of that before. The Same Game example is quite amazing!

    Quote Originally Posted by wysota View Post
    Apart from that it's probably most useful for embedded and mobile systems where you have a custom look most of the times anyway.
    I don't have any mobile devices so I didn't know about that.

Similar Threads

  1. Starting QT GUI in a seperate Thread
    By bbui210 in forum Qt Programming
    Replies: 8
    Last Post: 27th June 2018, 16:17
  2. Replies: 14
    Last Post: 17th August 2010, 12:17
  3. Questions before starting with Qt
    By MartinM in forum Newbie
    Replies: 6
    Last Post: 24th April 2010, 09:49
  4. Application starting slowly.
    By aj2903 in forum Qt Programming
    Replies: 3
    Last Post: 30th December 2008, 11:19
  5. Error starting Qt
    By shamik in forum Installation and Deployment
    Replies: 1
    Last Post: 18th April 2007, 12:30

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.