No Description

mrh 94f3a07042 新增 tunnel,但是不好用。完结 2 years ago
1-YourFirstQtQuickQMLApplication b17049d7f3 新增 2个官方用例 2 years ago
2-Python-QML integration 16b4384f06 简单的 button、slipper、radio、font、style 2 years ago
3-QMLCountry b17049d7f3 新增 2个官方用例 2 years ago
4-QMl-SQL-PySide6 b17049d7f3 新增 2个官方用例 2 years ago
autoGPT-1-cf-tunnel 94f3a07042 新增 tunnel,但是不好用。完结 2 years ago
.gitignore 94f3a07042 新增 tunnel,但是不好用。完结 2 years ago
chat-database.sqlite3 94f3a07042 新增 tunnel,但是不好用。完结 2 years ago
chat.log 94f3a07042 新增 tunnel,但是不好用。完结 2 years ago
readme.md 94f3a07042 新增 tunnel,但是不好用。完结 2 years ago

readme.md

  • 不支持 css 文件,即便支持,也需要编译QT库,一点也不优雅好用 https://github.com/Ableton/aqt-stylesheets
  • 开发工具难用到无语,实时预览都不太支持,问题很多,安装包都要 2.5G ,不支持 vscode
  • 社区资源太少,不火的东西说明没前途
  • 不够现代化,连 element 、vue 这种非常好看的样式都用不了,要自己一点点定义,浪费时间和生命
  • 教程少的可怜

介绍

QML 是一种声明性语言,它能比传统语言更快更好地开发项目

conda create -p .\env  python=3.10
pip install PySide6
conda activate f:\Engineer\python\pySimpleGUI\env

安装 vscode QML 预览插件 QML Syntax/Tools

QML 插件预览出错: gbk cant'decode 在QMl中如果使用中文,记得将编码格式改为 utf8

python -c "import sys; print(sys.getdefaultencoding())" 看到系统编码明明是 utf8 不知道为什么运行插件会出错

安装 vscode 插件 Qt For Python

创建第一个应用: https://doc.qt.io/qtforpython-6/tutorials/basictutorial/qml.html

详见: 1-YourFirstQtQuickQMLApplication

python -c "import PySide6.QtCore; print(PySide6.QtCore.version)"

官方 QML 文档: https://doc.qt.io/qt-6/qml-qtquick-controls-button.html

安装QT(不好用文件太大)

参考 https://blog.csdn.net/zhizhengguan/article/details/107567449

https://download.qt.io/archive/qt/5.14/5.14.2/

安装 make

参考:https://blog.csdn.net/weixin_41896770/article/details/131262178

下载地址 Complete package, except sources : https://gnuwin32.sourceforge.net/packages/make.htm

安装完成后将 C:\Program Files (x86)\GnuWin32\bin 假如到系统环境变量,重启 vscode

https://doc.qt.io/QMLLive/qmllive-installation.html

git clone git@github.com:qtproject/qt-apps-qmllive.git
cd F:\Engineer\python\Pyside6-QML\qt-apps-qmllive
make install

为什么要使用 Pyside6

没有用 pysimpleGUI ,因为它无法设置现代化的组件,一点也不美观

https://github.com/PySimpleGUI/PySimpleGUI/tree/master/PySimpleGUIQt