Skip to content
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

Support Qt6 #217

Open
0alpha opened this issue Jan 16, 2021 · 4 comments
Open

Support Qt6 #217

0alpha opened this issue Jan 16, 2021 · 4 comments

Comments

@0alpha
Copy link

0alpha commented Jan 16, 2021

As of just over a month ago, Qt6 came out. How much work is necessary to add support for Qt6?

@altendky
Copy link
Owner

I have no idea... but, I have been in touch with the QtPy team trying to get them started up on that. There are a few PRs including one for Qt 6 support which I am interested in and I've basically offered to work on whatever they need if we can get the project moving again. Depending on their progress and my own other tasks I may just make some effort here using the QtPy Qt 6 PR branch, but I haven't made that jump quite yet. With a little luck it isn't much work in this repo itself.

Thanks for the interest.

@altendky
Copy link
Owner

In case you happened to be interested in starting on this yourself... I would certainly provide help as you need it, and presuming it turns out well it would be merged.

@nrbnlulu
Copy link

nrbnlulu commented Oct 3, 2022

any updates on that?

@xaberus
Copy link

xaberus commented Oct 30, 2023

@altendky What is the current status of PySide6 support? While the released packages (qtrio-0.7 + qts-0.3) can be installed, running any code fails with You should not be here but you are running neither PyQt5 nor PySide2. All of these checks look like:

    if qts.is_pyqt_5_wrapper:
        event_hint = QtCore.QEvent.registerEventType(requested_value)
    elif qts.is_pyside_5_wrapper:
        event_hint = typing.cast(
            typing.Callable[[typing.Union[int, QtCore.QEvent.Type]], int],
            QtCore.QEvent.registerEventType,
        )(requested_value)
    else:  # pragma: no cover
        raise qtrio.InternalError(
            "You should not be here but you are running neither PyQt5 nor PySide2.",
        )

i.e, without the explicit check of the Qt wrapper the code would just work. Am I missing something?

From what I understand, the change between Pyside2 to Pyside6 should be minimal (the example code appears to me unchanged).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants