当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Qt混合Python开发技术:Python介绍、混合过程和Demo
- QT hybrid Python development technology: Python introduction, hybrid process and demo
- wanxin金融
- 14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
- Web Security (3) -- CSRF attack
- Download, installation and configuration of Sogou input method in Ubuntu
- ECMAScript7规范中的instanceof操作符
- Web安全(四)---XSS攻击
- Cpp(一) 安装CMake
- Awk implements SQL like join operation
猜你喜欢

Got timeout reading communication packets解决方法

14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?

云计算之路-出海记:整一台 aws 免费云服务器

Insight -- the application of sanet in arbitrary style transfer

Cryptography - Shangsi Valley

leetcode之判断路径是否相交

Basic knowledge of C + +

More than 50 object detection datasets from different industries

Wanxin Finance

工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
随机推荐
Web安全(一)---浏览器同源策略
Goland 编写含有template的程序
GET,POST,PUT,DELETE,OPTIONS用法与说明
数据库基本操作
你的主机中的软件中止了一个已建立的连接。解决方法
Awk implements SQL like join operation
【解决方案】分布式定时任务解决方案
VC6兼容性及打开文件崩溃问题解决
Adobe Prelude /Pl 2020软件安装包(附安装教程)
Web Security (4) -- XSS attack
leetcode之判断路径是否相交
Download, installation and configuration of Sogou input method in Ubuntu
Cpp(一) 安装CMake
On the stock trading of leetcode
Data transmission of asynchronous serial communication controlled by group bus communication
Assembly function MCALL systemstack asmcgocal system call
Adobe media encoder / me 2021 software installation package (with installation tutorial)
Face recognition: attack types and anti spoofing techniques
关于update操作并发问题
Using subprocess residue in supervisor and python multiprocessing