ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

15 February 2022
2022-02-15×
15 February 2022
S
is there any difference between engine.rootContext().setContextProperty('backend', backend) and engine.rootObjects()[0].setProperty('backend', backend)? I'm trying to pass a QObject from python to qml, however, I get null when I log the object in QML
F
Wow I just had a bit of a brainfart moment and almost banned @pysidebot from this Telegram group for spam
S
does anybody know how are Series stored in ChartView object tree? I'm trying to find the LineSeries defined inside PolarChartView (qt creator), but I cannot find it. I've checked properties, QGrapchisScene, Margins and Material, but is not there. However, in properties "axes" are present.
K
Sr. Sdoes anybody know how are Series stored in ChartView object tree? I'm trying to find the LineSeries defined inside PolarChartView (qt creator), but I cannot find it. I've checked properties, QGrapchisScene, Margins and Material, but is not there. However, in properties "axes" are present.
I don't think you can access it via a property right now. There should be an accessor method that will return you all QAbstractSeries'. I guess in Python the type doesn't matter, so what is returned should be the line series.
S
I tried that, but I can't access the series due to RuntimeError: Can't find converter for 'DeclarativeLineSeries*', I'm looking the doc but I don't know if I can cast it myself instead of using QObject, i read about qobject_cast, but I can't find it in pyside
I exposed an alias then accessed the property using that name: qml: property alias deltaSignal: deltaLine python: main.findChild(QObject, 'rawLoader').property('item').property('deltaLine')
K
Yessss it makes it soo much easier to register and create Python (and C++ - as it has a similar approach now) objects right within QML. You could do it before, but it required you to call methods on the QML Engine that are not obvious — this makes it a whole lot more automatic.
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