For application development using QT which one should i choose to go with python or c++?

  1. I am not sure to go for which development for QT…i.e…either i should go for python or c++ for QT development?
    i have seen articles in which it is mentioned python is slow(although its a fact) but also it is mentioned that its also not as much slow that a human can identify…based on complexity i have read building on python is much less complex as on with c++…

  2. Is there will be a QT creator from which i can make my application design by putting all the widgets on the window and thereby creating a .ui extension file…(i have seen in python that PYQT module is there which convert that .ui extension file into .py extension file.)

  3. Also i am not able to download pip3 for python(for that i have to make a custom image or use Torizon i think) but i want a kernel version only…so if go for python can i use python2 and pip2 for QT?i have read that support for python2 is coming to an end from 2020…so is it safe to go for python2 for it?

So in total i want you to please give me a clear view on which language should i go for QT development in python…
Thanks in Advance…

  1. You seem to be on an embedded platform → scarce hardware resources.
  2. You might get interested in QML/developing your own QML classes.

These two points make me advise you to go with C++.

i am completely new to QT i don’t have much knowledge on QT…i know some python programming only…how can i proceed?

Hi @akshat

  1. I am not sure to go for which development for QT…i.e…either i should go for python or c++ for QT development? i have seen articles in which it is mentioned python is slow(although its a fact) but also it is mentioned that its also not as much slow that a human can identify…based on complexity i have read building on python is much less complex as on with c++…

This is your personal choice. C++ is faster but you need to cross compile for different platforms. Python is portable to different platforms but maybe slower in some cases. QML can be integrated in C++ and Python. I think, in the past C++ was used more, but nowadays PyQt (Python with Qt) is getting popular. So at the end, the choice depend on your application and resources.

  1. Is there will be a QT creator from which i can make my application design by putting all the widgets on the window and thereby creating a .ui extension file…(i have seen in python that PYQT module is there which convert that .ui extension file into .py extension file.)

Yes, you can have a look here.

  1. Also i am not able to download pip3 for python(for that i have to make a custom image or use Torizon i think) but i want a kernel version only…so if go for python can i use python2 and pip2 for QT?i have read that support for python2 is coming to an end from 2020…so is it safe to go for python2 for it?

You just need to integrate Python in your custom image made by OpenEmbeddedBuild.

So in total i want you to please give me a clear view on which language should i go for QT development in python… Thanks in Advance…

You are welcome.

Best regards,
Jaski

Well, hope that you are not totally new to C++, as otherwise you will have to learn both C++ and Qt
simultaneously.