python - pyqt 与 qt c++ 开发windows客户端程序区别
怪我咯
怪我咯 2017-04-17 17:34:57
0
2
682

请教一下大牛,最近需要开发一个windows程序,选型是用QT 但是在语言上犯难了,是PYTHON (PYQT)还是C++ ,想知道这两张开发出来的程序,在语言区别以外,还有没有其他大的区别
备注:比如客户端程序的打包安装上面,哪个较便捷,依赖少,更容易独立安装

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
伊谢尔伦

I suggest you measure how you should choose from the following aspects
1) Whether the client is "more complex", that is, whether the amount of code is relatively large. If the amount of code is relatively large, it is recommended that you use Qt instead, because Python If the amount of language code increases, a considerable number of unit tests must be matched to ensure that every time you iterate and add functions, you will not destroy the previous code. For novices, especially those without relatively rich experience, maintaining such a large amount of Code is also an issue.
2) Whether it will call other class libraries, such as other C++ encapsulated dlls, if so, Qt, otherwise PyQt.
3) Do you need to consider copyright issues for your code? Apart from the issue of Qt commercial version charges, do your own codes need certain intellectual property protection, that is, encryption, for class libraries based on python scripting language like PyQt? The code protection is not very good. Your code is basically completely exposed to people who are familiar with the pyc format, and there are many such reverse tools.
4) Do you need to consider performance? Python is subject to GIL. For CPU-sensitive calculations, the speed is relatively slow. Can you accept it?
5) Is your development cycle relatively sufficient? If the development cycle is short, it is recommended to use PyQt, otherwise Qt.
6) There are relatively mature technologies for client packaging. PyQt uses cxfreeze, and Qt uses installer.
7) For you and your team, are you more familiar with C++ or python

If you can answer the above questions clearly, I believe you will have an idea of ​​what plan to choose

阿神

The Qt open source version agreement requires that projects using Qt must also be open source, otherwise it will be infringement. In addition, commercial licenses for Qt and PyQt must be purchased separately.

If you buy the commercial version, there is basically no difference between PyQt and C++. If it is open source licensed, PyQt does not have support for Qt Charts. In addition, PyQt cannot use many third-party Qt controls written in C++.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template