View Single Post
Old 01-25-2022, 03:32 PM   #129
lomkiri
Groupie
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 176
Karma: 1537710
Join Date: Jul 2021
Device: N/A
Quote:
Originally Posted by kovidgoyal View Post
I dont think thats because of geometry, its because of the dockarea being an enum which is not JSON serializable. what you need to do is

self.windowPos['dockarea'] = whatever.value
Mmmh, sure, I didn't realized that the signal dockLocationChanged was now passing an enum, not anymore a value.
Thanks for pointing it, it is now working (but I had to include a test "is_pyqt5", since it cannot be the same code for qt5 and qt6)
I wonder what was the pleasure for the PyQt team to complicate the things that much.
lomkiri is offline   Reply With Quote