Skip to content

Conversation

@Jerakin
Copy link

@Jerakin Jerakin commented Apr 25, 2025

Adding exec_ as a QtCompat. While it isn't removed in PySide6 it is currently emitting a Deprecation warning. I am unsure when it is slated for removal.

D:\...\__main__.py:61: DeprecationWarning: 'exec_' will be removed in the future. Use 'exec' instead.
  sys.exit(app.exec_())

Current usage.

app = QtWidgets.QApplication(sys.argv)
window = Window()
window.show()
sys.exit(app.exec_())

Suggested usage with QtCompat

app = QtWidgets.QApplication(sys.argv)
window = Window()
window.show()
sys.exit(QtCompat.exec_(app))

@CLAassistant
Copy link

CLAassistant commented Apr 25, 2025

CLA assistant check
All committers have signed the CLA.

@Jerakin Jerakin force-pushed the feat/exec-compat branch 2 times, most recently from 856ed4a to 452fdeb Compare April 25, 2025 14:03
@Jerakin
Copy link
Author

Jerakin commented Apr 25, 2025

Local branch didn't have the PySide6 changes. This has already been resolved.

@Jerakin Jerakin closed this Apr 25, 2025
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

Successfully merging this pull request may close these issues.

2 participants