Results 1 to 4 of 4

Thread: QML and QML Support

  1. #1
    Join Date
    Sep 2009
    Posts
    57
    Thanks
    7
    Thanked 5 Times in 4 Posts

    Question QML and QML Support

    Hi,

    I'm looking at migrating a desktop app from C++ widgets with QWT and a host of other stuff, to being pure QML and QTQuick controls for GUI and just use C++ for backend processing.

    I'm interested to know what the plans are for QWT and QML support ?

    Many thanks for any insight,
    Mark

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QML and QML Support

    First of all be aware of the fact, that Quick Controls 1 has become deprecated, what means that the Qt/Company has given up Qt/Quick for classic desktop applications. So be careful before riding a dead horse.

    From the technical point of view: for a QPainter based framework the scene graph does not offer many advantages over what you already have with using an OpenGL based plot canvas - or Qt4/X11. And going away from QPainter does not make much sense for Qwt - or probably any other graphic package, that needs to support stuff like PDF.

    About QML: it is sold as being part of the new graphic stack, but this is only because the Qt development decided not offer a C++ API for the Qt/Quick classes. In fact QML is unrelated and a widget based module like Qt/Charts can also offer a QML API . For the specific situations of Qwt I'm not sure how much it is worth. QML is only convenient as long as you can do things in a declarative ( mostly property settings and bindings ) way.

    Just to mention it: being frustrated from the heaviness of QML we decided to implement the next generation of our product completely in C++. The part I'm allowed to release under a open source license is available here: https://github.com/uwerat/qskinny. Hope sooner or later it will grow into a realistic option for Qt/Quick projects, that want or need to limit the amount of QML usage.

    Uwe
    Last edited by Uwe; 13th March 2018 at 13:46.

  3. #3
    Join Date
    Sep 2009
    Posts
    57
    Thanks
    7
    Thanked 5 Times in 4 Posts

    Default Re: QML and QML Support

    Thanks Uwe,

    I had already discarded the Quick 1.0 option.

    I am a little disappointed that the QT developers haven't created an abstraction layer for QPainter based objects that converts QPainter primitives to a declarative model to help bridge the two worlds or even to adjust/subset the QPainter API to make it compatible with a declarative approach. Its not like we write directly to bitmaps -- that's the whole point behind using QT widgets !

    Thanks for the insight on QWT.

    I feel like I need to write lots of code to adopt QML and that conflicts with one of the main reasons to adopt it !

    Mark

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QML and QML Support

    Quote Originally Posted by liversedge View Post
    I had already discarded the Quick 1.0 option.
    I was not talking about Quick 1 - the Controls 1 module of Quick 2 is deprecated now !

    The difference between Controls 1 and 2 ( both Quick 2 ! ) is, that the latter is lighter because of focusing on the embedded.use case and because internally it is written in C++.

    Uwe

Similar Threads

  1. QT support for android TV app (remote control support)
    By gpreddy.usa in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th June 2017, 01:04
  2. iOS Support
    By ccbaci in forum Qwt
    Replies: 3
    Last Post: 21st September 2013, 09:14
  3. Does Qt 4.6 for S60 support OMA DRM
    By coco in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd February 2010, 04:06
  4. GIF support
    By talk2amulya in forum Qt Programming
    Replies: 4
    Last Post: 10th February 2009, 09:57
  5. support of LVM in Mac Os X??????
    By jyoti in forum General Discussion
    Replies: 1
    Last Post: 3rd July 2007, 13:12

Tags for this Thread

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.