Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 3.4 KB

README.rst

File metadata and controls

87 lines (61 loc) · 3.4 KB

qts - use the Qt you've got

Resources

Documentation Read the Docs Documentation
Issues GitHub Issues
Repository GitHub Repository
Tests GitHub Actions Tests
Distribution PyPI
Latest distribution version
Supported Python versions
Supported Python interpreters

Introduction

Note

qts is presently an exploratory project. It does have test coverage and is significantly documented. It only covers a few Qt modules.

qts is a Qt5/6 and PyQt/PySide compatibility layer for your libraries and applications. It is designed to work with mypy and includes a CLI utility to notify mypy of the needed conditions. To keep the scope reasonable, qts will focus on the variances that all code using Qt will need such as imports and signals. Nuanced detailed differences will not be abstracted away. Helper functions and similar may be provided on a case by case basis.

import qts
import qts.util


def main():
    qts.set_wrapper(qts.available_wrappers()[0])

    from qts import QtWidgets

    application = QtWidgets.QApplication([])
    widget = QtWidgets.QLabel("this is qts")
    widget.show()
    qts.util.exec(application)

main()