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

missing: QtGui.QGuiApplication #418

Closed
DavidShawGL opened this issue Jul 6, 2024 · 1 comment
Closed

missing: QtGui.QGuiApplication #418

DavidShawGL opened this issue Jul 6, 2024 · 1 comment

Comments

@DavidShawGL
Copy link

I am swapping our python tools over to use Qt.py and have an issue with not being able to find QtGui.QGuiApplication

We have a close window function that we try to get topLevelWindows from:
tops = QtGui.QGuiApplication.topLevelWindows()

PySide2 and 6 imports of QtGui are able to find QGuiApplication but not when replace the import with Qt.

I'm not sure if I am misunderstanding something though.

Thanks
Dave

@mottosso
Copy link
Owner

mottosso commented Jul 7, 2024

QGuiApplication was added in Qt 5 (see "Since:"): https://doc.qt.io/qt-5/qguiapplication.html

Qt.py is still compatible with Qt 4, and thus cannot include members that does not also exist in Qt 4. There is interest in removing Qt 4, given that it isn't very popular these days anyway.

It's marked with a #helpwanted and is only missing someone to take the initiative. (hint)

@mottosso mottosso closed this as completed Jul 7, 2024
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

2 participants