-
-
Notifications
You must be signed in to change notification settings - Fork 781
New Backend - Qt #3769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
johnzhou721
wants to merge
37
commits into
beeware:main
Choose a base branch
from
johnzhou721:qtbackend
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,860
−44
Draft
New Backend - Qt #3769
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
1ff717e
Testbed and core changes to support Qt backend operations
johnzhou721 4d440ca
Addition of a Qt backend source (untested curretnly)
johnzhou721 2b96810
get rid of unofficial hacks and integrate into core
johnzhou721 b7504bc
a missed bug
johnzhou721 49312d0
no-cover trivial parts
johnzhou721 5f64d70
remove swapfile
johnzhou721 86e5731
workaround Briefcase's lack of packaging
johnzhou721 69a660d
fixup pyside6 imoprt hack
johnzhou721 3028865
fixup to get ready for testbed
johnzhou721 39349ec
Update button.py
johnzhou721 d2d0886
Update button.py
johnzhou721 9236d50
rerun ios ci
johnzhou721 9255280
Update core/src/toga/__init__.pyi
johnzhou721 d712512
Cosmetic cleanups
johnzhou721 7bbecbf
Update qt/src/toga_qt/libs/testing.py
johnzhou721 027b404
Update qt/src/toga_qt/widgets/activityindicator.py
johnzhou721 4a0695b
Update qt/src/toga_qt/libs/testing.py
johnzhou721 f709818
Update qt/src/toga_qt/widgets/activityindicator.py
johnzhou721 03a21f7
Update qt/src/toga_qt/screens.py
johnzhou721 e8f15a3
Formatting fixes
johnzhou721 81a964e
Remove nativeicon, hack action instead
johnzhou721 bece50b
Platform changes
johnzhou721 5760f1f
implement colors, a small window fixup
johnzhou721 7b11df2
multi-app structure setup
johnzhou721 f1cf4b3
correct the config
johnzhou721 5ee1ce6
qt testbed working
johnzhou721 12a9859
fixup
johnzhou721 220a786
increase timeouts
johnzhou721 84eb389
restore gtk test
johnzhou721 8387ade
continued progress.
johnzhou721 f274bce
a bunch of fixups
johnzhou721 c906be6
coverage fix
johnzhou721 7e8ff2e
a missing skip
johnzhou721 a693640
Update .github/workflows/ci.yml
johnzhou721 9d12cd3
Update .github/workflows/ci.yml
johnzhou721 535375c
[desparately] github snow day...
johnzhou721 9606935
Use system_pysie6
johnzhou721 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ jobs: | |
- "demo" | ||
- "dummy" | ||
- "gtk" | ||
- "qt" | ||
- "iOS" | ||
- "toga" | ||
- "positron" | ||
|
@@ -247,6 +248,7 @@ jobs: | |
briefcase-run-prefix: "" | ||
briefcase-run-args: "" | ||
setup-python: true | ||
testbed-app: testbed | ||
|
||
- backend: "macOS-x86_64" | ||
platform: "macOS" | ||
|
@@ -444,7 +446,8 @@ jobs: | |
timeout-minutes: 15 | ||
run: | | ||
${{ matrix.briefcase-run-prefix }} \ | ||
briefcase run ${{ matrix.platform }} --log --test ${{ matrix.briefcase-run-args }} -- --ci | ||
briefcase run ${{ matrix.platform }} --log --test \ | ||
${{ matrix.briefcase-run-args }} --app ${{ matrix.testbed-app }} -- --ci | ||
|
||
- name: Upload Logs | ||
uses: actions/[email protected] | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Toga now provides a Qt backend for KDE-based desktops. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Contributing | ||
|
||
BeeWare <3's contributions! | ||
|
||
Please be aware that BeeWare operates under a [Code of | ||
Conduct](https://beeware.org/community/behavior/code-of-conduct/). | ||
|
||
If you'd like to contribute to Toga development, our [contribution | ||
guide](https://toga.readthedocs.io/en/latest/how-to/contribute/index.html) details how | ||
to set up a development environment, and other requirements we have as part of our | ||
contribution process. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2025 Russell Keith-Magee. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of Toga nor the names of its contributors may | ||
be used to endorse or promote products derived from this software without | ||
specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.. |pyversions| image:: https://img.shields.io/pypi/pyversions/toga-qt.svg | ||
:target: https://pypi.python.org/pypi/toga-qt | ||
:alt: Python Versions | ||
|
||
.. |license| image:: https://img.shields.io/pypi/l/toga-qt.svg | ||
:target: https://github.com/beeware/toga-qt/blob/main/LICENSE | ||
:alt: BSD-3-Clause License | ||
|
||
.. |maturity| image:: https://img.shields.io/pypi/status/toga-qt.svg | ||
:target: https://pypi.python.org/pypi/toga-qt | ||
:alt: Project status | ||
|
||
toga-qt | ||
======== | ||
|
||
|pyversions| |license| |maturity| | ||
|
||
A Qt backend for the `Toga widget toolkit`_. | ||
|
||
This package isn't much use by itself; it needs to be combined with `the core Toga library`_. | ||
|
||
For platform requirements, see the Qt platform documentation (TODO). | ||
|
||
For more details, see the `Toga project on GitHub`_. | ||
|
||
.. _Toga widget toolkit: https://beeware.org/toga | ||
.. _the core Toga library: https://pypi.python.org/pypi/toga-core | ||
.. _Toga project on GitHub: https://github.com/beeware/toga | ||
|
||
Community | ||
--------- | ||
|
||
Toga is part of the `BeeWare suite`_. You can talk to the community through: | ||
|
||
* `@[email protected] on Mastodon`_ | ||
* `Discord`_ | ||
* The Toga `GitHub Discussions forum`_ | ||
|
||
We foster a welcoming and respectful community as described in our | ||
`BeeWare Community Code of Conduct`_. | ||
|
||
.. _BeeWare suite: https://beeware.org | ||
.. _@[email protected] on Mastodon: https://fosstodon.org/@beeware | ||
.. _Discord: https://beeware.org/bee/chat/ | ||
.. _GitHub Discussions forum: https://github.com/beeware/toga/discussions | ||
.. _BeeWare Community Code of Conduct: https://beeware.org/community/behavior/ | ||
|
||
Contributing | ||
------------ | ||
|
||
If you experience problems with Toga, `log them on GitHub | ||
<https://github.com/beeware/toga/issues>`__. | ||
|
||
If you'd like to contribute to Toga development, our `contribution guide | ||
<https://toga.readthedocs.io/en/latest/how-to/contribute/index.html>`__ | ||
details how to set up a development environment, and other requirements we have | ||
as part of our contribution process. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools==80.9.0", | ||
"setuptools_scm==9.2.0", | ||
"setuptools_dynamic_dependencies==1.0.0", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
dynamic = ["version", "dependencies"] | ||
name = "toga-qt" | ||
description = "An Qt (KDE) backend for the Toga widget toolkit." | ||
readme = "README.rst" | ||
requires-python = ">= 3.10" | ||
license = "BSD-3-Clause" | ||
license-files = [ | ||
"LICENSE" | ||
] | ||
authors = [ | ||
{name="John", email="[email protected]"}, | ||
{name="Russell Keith-Magee", email="[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name="BeeWare Team", email="[email protected]"}, | ||
] | ||
keywords = [ | ||
"gui", | ||
"widget", | ||
"cross-platform", | ||
"toga", | ||
"desktop", | ||
"qt", | ||
] | ||
classifiers = [ | ||
"Development Status :: 1 - Planning", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Python :: 3.14", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: User Interfaces", | ||
"Topic :: Software Development :: Widget Sets", | ||
] | ||
|
||
|
||
[project.entry-points."toga.backends"] | ||
linux = "toga_qt" | ||
|
||
[tool.setuptools_scm] | ||
root = ".." | ||
|
||
[tool.setuptools_dynamic_dependencies] | ||
dependencies = [ | ||
"qasync", | ||
"toga-core == {version}", | ||
"system-pyside6 @ git+https://github.com/johnzhou721/system-pyside6.git", | ||
] | ||
|
||
[tool.coverage.run] | ||
parallel = true | ||
branch = true | ||
relative_files = true | ||
|
||
# See notes in the root pyproject.toml file. | ||
source = ["src"] | ||
source_pkgs = ["toga_qt"] | ||
|
||
[tool.coverage.paths] | ||
source = [ | ||
"src/toga_qt", | ||
"**/toga_qt", | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Examples of valid version strings | ||
# __version__ = '1.2.3.dev1' # Development release 1 | ||
# __version__ = '1.2.3a1' # Alpha Release 1 | ||
# __version__ = '1.2.3b1' # Beta Release 1 | ||
# __version__ = '1.2.3rc1' # RC Release 1 | ||
# __version__ = '1.2.3' # Final Release | ||
# __version__ = '1.2.3.post1' # Post Release 1 | ||
|
||
__version__ = "0.0.0" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version number needs to be dynamically determined from Travertino