当前位置:网站首页>QT hybrid Python development technology: Python introduction, hybrid process and demo
QT hybrid Python development technology: Python introduction, hybrid process and demo
2020-11-07 23:13:00 【Red Imitation_ Red fat man】
If the article is original , Reprint please indicate the source of the original This article blog address :https://blog.csdn.net/qq21497936/article/details/109474663 Dear readers , Knowledge is infinite and manpower is poor , Or change the demand , Or find professionals , Or do your own research Red fat man ( Red Imitation ) The complete blog of : Development technology collection ( contain Qt Practical technology 、 Raspberry pie 、 The three dimensional 、OpenCV、OpenGL、ffmpeg、OSG、 Single chip microcomputer 、 The combination of software and hardware and so on ) Ongoing update ...( Click on the portal )
Qt Development column : Third party Library Development Technology
<br>
Preface
Qt Medium mix Python Development , Callable Python Commands and scripts .
<br>
Python
Python Is a cross platform computer programming language . It's a high-level combination of explanatory 、 Compilability 、 Interactive and object-oriented scripting language . Originally designed to write automated scripts (shell), With the continuous update of the version and the addition of new language features , The more it's used for independent 、 Development of large projects . Python It's an interpreted scripting language , It can be applied to the following fields :
- Web and Internet Development
- Scientific calculation and Statistics
- Artificial intelligence
- Desktop interface development
- software development
- The backend development
- Web crawler
<br>
download Python
3.x Version of the restrictions on some functions ,2.x Support , So use 2.x, Chose one python Bring their own pip Of , Version is Python2.7.13. Official website download address :https://www.python.org/downloads/ After downloading , Can be installed .
<br>
Added by the author
Python Learning notes will be released in succession , Only practical, not nonsense , The fastest way to start Python.
<br>
Qt introduce Python library
According to Modularity , take python Of libs and include Copy the directory to the path of the module ( reference “ modularization ”), modular pri The documents are as follows :
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
HEADERS += \
$$PWD/PythonManager.h
SOURCES += \
$$PWD/PythonManager.cpp
# python2.7.13
INCLUDEPATH += \
$$PWD/python2.7.13/include
LIBS += -L$$PWD/python2.7.13/libs
LIBS += -lpython27
<br>
modularization
<br>
test run
Project deployment after the introduction of modules : Test code : The test of python Script and output :
<br>
Engineering templates v1.0.0
<br>
If the article is original , Reprint please indicate the source of the original This article blog address :https://blog.csdn.net/qq21497936/article/details/109474663
版权声明
本文为[Red Imitation_ Red fat man]所创,转载请带上原文链接,感谢
边栏推荐
- Python image recognition OCR
- 来自不同行业领域的50多个对象检测数据集
- ECMAScript7规范中的instanceof操作符
- Adobe Lightroom /Lr 2021软件安装包(附安装教程)
- The road of cloud computing: a free AWS cloud server
- Writing method of field and field comparison condition in where condition in thinkphpp6
- awk实现类sql的join操作
- Wanxin Finance
- Animation techniques and details you may not know
- 面部识别:攻击类型和反欺骗技术
猜你喜欢
More than 50 object detection datasets from different industries
See once to understand, graphic single chain table inversion
Judging whether paths intersect or not by leetcode
2020-11-07:已知一个正整数数组,两个数相加等于N并且一定存在,如何找到两个数相乘最小的两个数?
Basic operation of database
关于晋升全栈工程师,从入门到放弃的神功秘籍,不点进来看一看?
C language I blog assignment 03
Problems of Android 9.0/p WebView multi process usage
use Xunit.DependencyInjection Transformation test project
Insight -- the application of sanet in arbitrary style transfer
随机推荐
Problems of Android 9.0/p WebView multi process usage
On the concurrency of update operation
Wechat applet request reported 400 error @ requestbody failed to receive
Web Security (1) -- browser homology strategy
[C + + learning notes] how about the simple use of the C + + standard library STD:: thread?
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
Sentry installation
Adobe Prelude /Pl 2020软件安装包(附安装教程)
一次公交卡被“盗刷”事件带来的思考
C++基础知识篇:C++ 基本语法
Web安全(三)---CSRF攻击
Tail delivery
构造请求日志分析系统
到底选openstack还是vmware?
CPP (2) creating CPP project
android基础-RadioButton(单选按钮)
Qt混合Python开发技术:Python介绍、混合过程和Demo
Get started, GIT
Wanxin Finance
WPF personal summary on drawing