ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

snapshot for February 2022
‹ February 2022 ›×
Thanks. Will try this
S
Are there things not exposed in PySide on purpose? For example, I cannot find QAnimationDriver, while it is part of QtCore.
S
@Keithel trying to solve it now with a Shiboken binding, for the C++ code that I wanted to do a more native python implemantion for.
I'm not even familiar with QAnimationDriver in Qt 5, and I've been using Qt for a long time
Is it something from Qt 4 or Qt 3 that got replaced by something else?
K
There is a whole set of QAnimation classes. Is that what you're looking for?
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