Results 1 to 9 of 9

Thread: New to QT sort of, should I use QT or QML

  1. #1
    Join Date
    Apr 2014
    Posts
    3
    Platforms
    Windows

    Question New to QT sort of, should I use QT or QML

    Hello All,

    I am working to make a reusable system of software that can cover a large area of device usage (not in the mobile space) in the device space. Below is a list of some of the things I need to do.

    1. Adjustable transparency of multiple layers of UI
    2. Video to a widget with overlays
    3. Non-rectangular graphic elements
    4. fly-out windows

    My question is simple: I would like to use QML but do not know if it can handle all these features. Which is better to use Qt for its maturity or QML can do all this?

    I would like to use QML, but hesitate. Can it do these things.

  2. #2
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: New to QT sort of, should I use QT or QML

    Maybe this overview helps you with your decision: http://qt-project.org/doc/qt-5/topics-ui.html
    I'm not so familiar with QML so I'm not sure if everything on your list is supported out of the box but I think to implement the things you want using Qt widgets is more complex. What do you mean with fly-out windows?

  3. #3
    Join Date
    Jan 2013
    Posts
    17
    Thanks
    9

    Default Re: New to QT sort of, should I use QT or QML

    I think it is easier to do this using App Node.js, HTML 5 and javascript.
    Like this one: https://github.com/popcorn-time/popcorn-app
    But I don't know your project.

    For QML:
    1. Is it possible and easy. There a bright control for ubuntu example.
    2. I don't know, never worked with video, but there are a lot of libraries, I think it is possible.
    3. Maybe You can work with rectangular with transparency area, I saw some example at http://quitcoding.com/
    4. Is it possible.

  4. #4
    Join Date
    Apr 2014
    Posts
    3
    Platforms
    Windows

    Default Re: New to QT sort of, should I use QT or QML

    I realized that there is one thing missing. This is for medical device. Not sure I should use javascript and HTML5.

  5. #5
    Join Date
    Jan 2013
    Posts
    17
    Thanks
    9

    Default Re: New to QT sort of, should I use QT or QML

    Like I said, i don't know your project.

    QML is cool and it will be easy to do an float and beautiful interface, with themes and nice effects, but I wouldn't use QML for medical devices at first moment, because it is quite new and a lot of things are changing each new version, my personal opinion, to use QML you will need a better know-how. So, to do that, I would choose the technology that I am better.

    I would develop using Qt/C++, there are more example, a lot of documentation (this is important) and a bigger comunity. With Qt 5.3 will be easier to integrate QWidgets with QML, so you can test and reuse more source code.

    I hope it has helped you.

    Winner winner chicken dinner!
    Quote Originally Posted by davidfig View Post
    I realized that there is one thing missing. This is for medical device. Not sure I should use javascript and HTML5.

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

    Default Re: New to QT sort of, should I use QT or QML

    Quote Originally Posted by davidfig View Post
    Hello All,

    I am working to make a reusable system of software that can cover a large area of device usage (not in the mobile space) in the device space. Below is a list of some of the things I need to do.

    1. Adjustable transparency of multiple layers of UI
    2. Video to a widget with overlays
    3. Non-rectangular graphic elements
    4. fly-out windows

    My question is simple: I would like to use QML but do not know if it can handle all these features. Which is better to use Qt for its maturity or QML can do all this?

    I would like to use QML, but hesitate. Can it do these things.
    You can do all that provided you have knowledge how to do it. From your list we have no idea what functionality is to be implemented so it is hard to say whether it will be "easy" or "hard" to obtain that functonality. As far as your list is concerned, it should be rather easy to do that in Qt Quick/QML. However you should also consider using GraphicsView if your C++ skills are strong compared to your QML knowledge.
    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.


  7. #7
    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: New to QT sort of, should I use QT or QML

    I think the described feature set is something that would benefit from QtQuick, especially QtQuick2.

    Cheers,
    _

    P.S.: "should I use Qt or QML" does make little sense, the only production ready implementation of QML right now is Qt based.

  8. #8
    Join Date
    Apr 2014
    Posts
    3
    Platforms
    Windows

    Default Re: New to QT sort of, should I use QT or QML

    This is exactly what I suspected. I see QML much like WPF in C# which has great power. But if QML is not mature then it could be a problem down the road. The only saving grave here is that this project will take two years and QML has two years to mature. That also means I may have to weather the pain of transformation of QML over time.

    Thanks for your answer. It solidified my thinking a lot.


    Quote Originally Posted by ricardodovalle View Post
    Like I said, i don't know your project.

    QML is cool and it will be easy to do an float and beautiful interface, with themes and nice effects, but I wouldn't use QML for medical devices at first moment, because it is quite new and a lot of things are changing each new version, my personal opinion, to use QML you will need a better know-how. So, to do that, I would choose the technology that I am better.

    I would develop using Qt/C++, there are more example, a lot of documentation (this is important) and a bigger comunity. With Qt 5.3 will be easier to integrate QWidgets with QML, so you can test and reuse more source code.

    I hope it has helped you.
    Understood. I guess it would have been better to say declarative or not.

    Quote Originally Posted by anda_skoa View Post
    P.S.: "should I use Qt or QML" does make little sense, the only production ready implementation of QML right now is Qt based.

  9. #9
    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: New to QT sort of, should I use QT or QML

    Quote Originally Posted by davidfig View Post
    The only saving grave here is that this project will take two years and QML has two years to mature.
    QML has been introduced in, I think,Qt 4.6, so it is already a very established technology.
    QtQuick is used for tons of mobile (e.g. phones) and embedded device UI use cases (control panels, etc).

    Quote Originally Posted by davidfig View Post
    That also means I may have to weather the pain of transformation of QML over time.
    If you mean incompatible changes then I don't think that would happen before Qt6.
    The QML engine's internals got changed recently and new components have been added to QtQuick, but neither affects applications using the already existing components or using QML for other things than UI.

    Cheers,
    _

Similar Threads

  1. How to Sort a QModelIndexList
    By enricong in forum Qt Programming
    Replies: 2
    Last Post: 31st August 2016, 16:04
  2. sort
    By av2306 in forum Qt Programming
    Replies: 4
    Last Post: 23rd February 2014, 05:09
  3. How to sort a Qlist AND get a sort key?
    By agerlach in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2010, 18:44
  4. QAbstractTableModel and sort
    By foxyproxy in forum Qt Programming
    Replies: 7
    Last Post: 25th March 2008, 09:30
  5. When sort the lists?
    By SkripT in forum Qt Programming
    Replies: 6
    Last Post: 14th April 2006, 16: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
  •  
Qt is a trademark of The Qt Company.