Details
-
Bug
-
Resolution: Won't Do
-
P5: Not important
-
None
-
6.7.2
-
None
Description
Running the following code should print "Done". Instead, the Python process crashes.
from PySide6.QtWidgets import QApplication application = QApplication() clipboard = QApplication.clipboard() mimeData = clipboard.mimeData() try: clipboard.setMimeData(mimeData) except: pass print("Done")
It is not unexpected that setMimeData fails (https://doc.qt.io/qt-6/qclipboard.html#mimeData):
> Note: The pointer returned might become invalidated when the contents of the clipboard changes; either by calling one of the setter functions or externally by the system clipboard changing.
However, it should not crash Python.