ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

8 May 2020
2020-05-08×
8 May 2020
I
Is there a tool to automatically convert a qt c++ project to a shiboken project, Bindings. XML cmakelists. TXT is automatically generated?
F
Is there a way to get a signal's name from a PySide2.QtCore.SignalInstance?
Ë
hmmm doesn't look like. Whatcha wanna do?
F
It's already done for PyQt5, but not PySide, unless the user passes something like (worker.finished, 'finished') as signals, which is a bit ugly
does signal.__signature__ works?
don't remember if the SingnalInstance has a __signature__ or if we can add a __str__ even.
How can I import QVector? It’s from QtCore right?
D
But didn’t work, it says “cannot import name QVector”
Having such containers in the bindings makes little sense
that's why at least in PySide2 we transform it to Python lists
you can see if in the source code
C
<container-type name="QVector" type="vector"> <include file-name="QVector" location="global"/> <conversion-rule> <native-to-target> <insert-template name="cppvector_to_pylist_conversion"/> </native-to-target> <target-to-native> <add-conversion type="PySequence"> <insert-template name="pyseq_to_cppvector_conversion"/> </add-conversion> </target-to-native> </conversion-rule> </container-type>
Calendar: May 2020
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