• This repository has been archived on 31/Oct/2022
  • Stars
    star
    356
  • Rank 118,742 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created about 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A sample of QtQuick 2 providing material and fluent design themes in PyQt5.

Example of QtQuick 2 with PyQt5

build

NOTE: A better practice for communication between front-end (QML) and back-end (Python) can be found in neural-network-sandbox repository.

NOTE: For modern UI framework for Python, use PySide6 with Visual Studio Code Extension or Qt Creator for the best experience.

Themes

Run main.py with theme names as second parameter.

python main.py Default
python main.py Fusion
python main.py Imagine
python main.py Material
python main.py Universal

Change environmental variable QT_QUICK_CONTROLS_STYLE in main.py.

# main.py

# Set the QtQuick Style
# Acceptable values: Default, Fusion, Imagine, Material, Universal.
os.environ['QT_QUICK_CONTROLS_STYLE'] = 'Default'

Previews

Default

Default

Fusion (Breeze Dark)

Fusion (Breeze Dark)

Fusion (Kubuntu)

Fusion (Kubuntu)

Imagine

Imagine

Universal (Microsoft Fluent Design Dark)

Universal (Microsoft Fluent Design Dark)

Universal (Microsoft Fluent Design Light)

Universal (Microsoft Fluent Design Light)

Material (Light)

Material (Light)

Material (Dark)

Material (Dark)

Packaging for Distribution with PyInstaller

You could download the latest binary distribution here (Linux 64bit):

Linux Release link

Package the source code manually:

.qrc files must be located in the same directory with the python file which will load the resource in qrc.

pyrcc5 -o pyqt5_qtquick2_example/resources.py resources.qrc
pyinstaller main.py -y --windowed --additional-hooks-dir pyi_hooks/

More Repositories

1

vscode-qt-for-python

Qt for Python (PySide and PyQt) extension for Visual Studio Code.
TypeScript
182
star
2

neural-network-sandbox

A toy about fundamental neural network algorithms and Qt Quick 2 interface.
QML
75
star
3

ionic-pwa-example-moment

A sample camera app implemented with PWA and Ionic 5.
TypeScript
28
star
4

ncu-helper

Add some features and change the design of NCU webpages in more modern style.
CSS
14
star
5

adaptive-huffman-coding

Adaptive Huffman coding algorithm in Python.
Python
13
star
6

prototype-jpeg

A prototype JPEG compressor (only algorithm without header) in Python.
Python
9
star
7

mips-pipelined-processor

Simulate the simple MIPS pipeline. Including structural, data and control hazard detection.
Java
7
star
8

fuzzy-car

A sandbox of the practice for the fuzzy system.
Python
4
star
9

uml-diagram-editor

A toy UML diagram editor.
Java
3
star
10

notes

Notes from books and experience.
Shell
3
star
11

pso-car

A sandbox practice for the particle swarm optimization.
Python
2
star
12

mini-lisp-interpreter

An interpreter of Mini-LISP.
Python
2
star
13

telecom-voice-classification

The automatic classification project for telecom voice.
Python
2
star
14

valley-wildfire-viz

CS530 Introduction to Scientific Visualization final project @Purdue.
Python
2
star
15

countdown-recorder

A countdown recorder for TOEFL speaking test practice.
TypeScript
2
star
16

ga-car

A sandbox practice for the genetic algorithm.
Python
2
star
17

seanwu1105

Oh, that's me.
1
star
18

how-to-assemble-toolbox

A simple ADV game in console with assembly language.
Assembly
1
star
19

purdue-cs573-project

CS573 Data Mining final project @Purdue.
Jupyter Notebook
1
star
20

emotion-api-simple-gui

A simple GUI application for Microsoft Emotion API.
Python
1
star
21

ReMusic

A mini game about rebuilding music pattern
Java
1
star
22

docs-populator

Mail Merge with HTML and CSV.
HTML
1
star