当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Cryptography - Shangsi Valley
- 爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
- Data structure and sorting algorithm
- ECMAScript7规范中的instanceof操作符
- c# 表达式树(一)
- LadonGo开源全平台渗透扫描器框架
- Adobe media encoder / me 2021 software installation package (with installation tutorial)
- delphi10的rest.json与system.json的踩坑
- Data transmission of asynchronous serial communication controlled by group bus communication
- Summary of knowledge points of Jingtao project
猜你喜欢
What kind of technical ability should a programmer who has worked for 1-3 years? How to improve?
The software in your host has terminated an established connection. resolvent
C/C++编程笔记:C语言相比其他编程语言,有什么不一样的优势?
1.深入Istio:Sidecar自动注入如何实现的?
Go sending pin and email
c# 表达式树(一)
Everything is 2020, LINQ query you are still using expression tree
Hand tearing algorithm - handwritten singleton mode
Insight -- the application of sanet in arbitrary style transfer
[solution] distributed timing task solution
随机推荐
Assembly function MCALL systemstack asmcgocal system call
Cpp(一) 安装CMake
sed之查找替换
QT hybrid Python development technology: Python introduction, hybrid process and demo
Static + code block + polymorphism + exception
Got timeout reading communication packets解决方法
你的主机中的软件中止了一个已建立的连接。解决方法
计组-总线通信控制之异步串行通信的数据传输
Web安全(三)---CSRF攻击
Insight -- the application of sanet in arbitrary style transfer
2020天翼智能生态博览会中国电信宣布5G SA正式规模商用
High concurrency in ngnix cluster
Adobe Lightroom / LR 2021 software installation package (with installation tutorial)
go wire 依赖注入入门
Problems of Android 9.0/p WebView multi process usage
The software in your host has terminated an established connection. resolvent
状态压缩:对动态规划进行降维打击
Fortify漏洞之 Privacy Violation(隐私泄露)和 Null Dereference(空指针异常)
CPP (3) what is cmake
C / C + + Programming Notes: what are the advantages of C compared with other programming languages?