zoukankan      html  css  js  c++  java
  • PYQT 入门之旅

    编写日期:2019-01-20

    更新日期:2019-03-30

    如果是传统桌面应用程序,使用 C++ 部件开发就足够了,如果学习目标是手机移动应用开发,QML 是更好的选择。

    笔者操作系统是ubuntu 18.04,已安装anaconda

    Ctrl+Alt+T打开Terminal,输入pip list,便可看见已安装有pyqt 5.9.2,或者输入conda list看见已安装qtpy 1.5.0

    anaconda中含有pyqt5,但是PyQt5不再提供Qt Designer等工具,所以需要再安装pyqt5-tools. 

     打开spyder或者jupyter-notebook即可import PyQt5的库

    QT本身就是C++编写的,因此Qt程序和C++程序相当类似。

    查看是否安装Qt,可以查看Qt 专门的项目构建工具 qmake版本。在ubuntu的terminal下输入

    qmake -v

    得到如下输出

    QMake version 3.1
    Using Qt version 5.9.6 in /home/weidong/anaconda3/lib

    可见ubuntu已经安装Qt 5.9.6

    Tkinter:

    https://docs.python.org/3/library/tkinter.html#file-handlers

    https://docs.python.org/3.3/library/turtle.html#turtle-methods

    https://github.com/PacktPublishing/Python-GUI-Programming-Cookbook-Second-Edition

    辛星tkinter 教程第二版

     https://likegeeks.com/python-gui-examples-tkinter-tutorial/

    Learn From Code:   python -m turtledemo  

    Reference:

    https://blog.csdn.net/yogima/article/details/73692255

    https://blog.csdn.net/pipisorry/article/details/45999965

    https://blog.csdn.net/haha1fan/article/details/55098127

    ZetCode PyQt5 tutorial: http://zetcode.com/gui/pyqt5/

    中文译制版: https://www.cnblogs.com/archisama/p/5442071.html

    Python官方版:https://pythonspot.com/pyqt5/

    API版:http://pyqt.sourceforge.net/Docs/PyQt5/

    Qt 编程指南 https://qtguide.ustclug.org/

    本博客由博主原创,链接:https://www.cnblogs.com/WindyZ/
  • 相关阅读:
    python 替换图片中的像素
    python paddleocr 增加识别速度的方法
    mysql 子查询少用
    mysql 临时表代替in的方法
    mysql创建临时表不用创建临时表结构的方法
    Nginx 报错 connect() failed (110: Connection timed out) while connecting to upstream
    用mkcert生成SSL,内网完美起跑https
    用于制作任何echarts地图(省、市、区、城镇街道)
    javascript执行机制
    ES6便捷语法
  • 原文地址:https://www.cnblogs.com/WindyZ/p/10291149.html
Copyright © 2011-2022 走看看