View Single Post
Old 01-04-2021, 08:58 AM   #36
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
Thanks for the feedback on the query functionality, I will track down the segfaults and add a filter to remove things like hover and focus to prevent issues.

As you can see, the embedded interface for python objects is quite limited. It is not a true
bridge. The only similar example is to call in to get a python object as QVariant and from it create a PyObjectPtr (See Misc/PyObjectPtr) and then use it to invoke its methods. In PythonRoutines see the routines related to metadata as the only example I have for that. The python object itself can keep state across multiple calls and is reference counted so it should work to use it to call back in with additional information. But not any of that has been tested because it was never needed before.

So your idea of parsing twice might be the best one.

Last edited by KevinH; 01-04-2021 at 09:00 AM.
KevinH is offline   Reply With Quote