Skip to content

An unofficial and opinionated project template designed for a quick start with PySide6 and QtQuick

License

Notifications You must be signed in to change notification settings

trin94/PySide6-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial Opinionated Template for PySide6 with QtQuick

An unofficial and opinionated project template designed for a quick start with PySide6 and QtQuick.

screenshot

Features

  • Compatible with Python 3.9+
  • Supports internationalization, including Right-to-Left User Interfaces
  • Leverages the Qt Resource System to compile resources in data, i18n, or qml into a Python file:
    • data accessible at :/data or qrc:/data
    • i18n accessible at :/i18n or qrc:/i18n
    • qml accessible at :/qt/qml or qrc:/qt/qml
  • Final build consists solely of Python files
  • Preconfigured testing (Python + QML)
  • CI setup included
  • Client-side window decorations implemented
  • No need for Qt Creator; use your preferred text editor

Development Setup

Quick Start

This project requires the use of a virtual environment.

  1. Prepare the development environment for the specific operating system:
  2. Execute just build-develop to compile resources.
  3. Launch the app by running python main.py.

Just recipes

$ just --list
Available recipes:
    [build]
    build                  # Build full project into build/release
    build-develop          # Build and compile resources into source directory
    clean                  # Remove ALL generated files

    [i18n]
    add-translation locale # Add new language
    update-translations    # Update *.ts files by traversing the source code

    [test]
    test                   # Run Python and QML tests
    test-python            # Run Python tests
    test-qml               # Run QML tests

Workflow

After each modification in the data, i18n, or qml directories, run just build-develop. This command will compile all resources into a Python file and place it in the myapp directory, which will be accessed on application startup.

Internationalization

  • Instructions for adding new languages can be found here.

Read Further

Dependencies

FAQ

  • Is it exclusively PySide6? Can PyQt6 be used instead of PySide6?

    Yes, it should be possible but may require additional work.

About

An unofficial and opinionated project template designed for a quick start with PySide6 and QtQuick

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •