This is a apparently a consequence of introducing support for fully qualified enums for PySide 6 (see https://lists.qt-project.org/pipermail/development/2023-November/044620.html ). Please ask the PyQt6 developers to adapt to this. pyside6-uic will correctly handle this.
@JonB said in How can I release a pdf document for use again after it has been used with QPdfView in PyQt?:
self.pdf = None
self.document = None
self.pdf = None gets rid of self.pdf.document. self.document = None is necessary because you have self.document = QPdfDocument().
@tbreimer
Yes, the extra step is irritating (I don't know, I think Creator can call it automatically (when .ui is changed) for you for Python? It does so for C++) but it's so worth it! Not only nicer code, but also design-time code completion when using the generated variables and the editor knows about their types.
You can implement a debouncer. For example, accumulate a certain amount of changes and only then signal that the model has changed to minimize the amount of time the views will query the model.
Also, don't forget to properly use lock mechanism to avoid writing to the same object from multiple different threads.
@SGaist said in An issue with moving On Arabic letters with screen readers:
Sorry, I don't have a Windows machine at hand and (AFAICS) could not reproduce that on macOS.
Did you retry with a more recent version of PySide6 ?
Hi, SGaist
I always use the latest version of pyqt6
But the problem is still the same and I haven't found a solution yet
Hi,
You're not giving enough information.
What is ZoomMode ?
How is it used ?
Whiche version of PySide/PyQt are you using ?
On which OS ?
A minimal runnable example would allow us to test your issue more easily.
QNAM deals with requests, so I don't understand the question.
Oic, you mean some Python module named requests. Personally I would use Qt classes where possible rather than picking Python ones. And if the Python stuff is synchronous then no wonder you find you need threads, which you shouldn't need with Qt asynchronous calls.