ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

28 February 2022
2022-02-28×
28 February 2022
Currently fighting with Shiboken. Which directly causes a segmentation fault when importing the module.
S
>>> from PyMovieRenderer import * Program received signal SIGSEGV, Segmentation fault. init_MovieRenderer (module=<module at remote 0x7fffe3dc76f0>) at /home/skinkie/Sources/py_qml_movie_renderer/PyMovieRenderer/movierenderer_wrapper.cpp:886 Which boils down to; 886 _Sbk_MovieRenderer_Type = Shiboken::ObjectType::introduceWrapperType( 887 module, 888 "MovieRenderer", 889 "MovieRenderer*", 890 &Sbk_MovieRenderer_spec, 891 &Shiboken::callCppDestructor< ::MovieRenderer >, 892 reinterpret_cast<SbkObjectType *>(SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX]), 893 0, 894 0 );
S
Lets say I have my C++ code now 'almost' working. But shiboken and Python fail on the oddest places. Might report back on that part later today.
hi, is it possible to "keep alive" QtObject properties from dynamic created windows? I store a QtObject in a property in the new window, and store a reference to the created window in a list in the parent window, however, if I create another window after the first one (without exiting the first window), I can't access the QtObject in the first window anymore, I get null when accessing it.
I think the problem is I'm not storing the QtObject received in signal correctly, when a new signal arrive, the last object disappear and is gargage collected?
S
that was indeed the problem, I wasn't saving the object from pyside and was gargage collected.
Calendar: February 2022
Archive by month
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog