ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

snapshot for September 2025
‹ September 2025 ›×
C
Can you let us know what mtk client tool is? I don't know it. And by "use this" you mean pyside?
I
You're correct. Sorry. Currently facing an issue regarding testing QML while exposing a Singleton from Python and I thought changing that order fixed it. But it was not the case. And yes, documentation is correct.
A
Why does QLocale("C").timeFormat(QtCore.QLocale.FormatType.NarrowFormat) contain seconds, whereas timeFormat for a real locale (e.g., QLocale("en_US")) does not?
C
But you are right, not very consistent.
A
How do I force the minimumSizeHint of a QComboBox to be re-computed after I change the items? It's computed when the widget is about to show, but hiding and showing the widget seems a bit dirty.
J
Hi, im trying to combine video stream from 2 capturesessions. What’s the best way to do that? I used GrabToImage and used opencv videoWriter to combine them. But somehow some frames are missing, ie, video duration is shorter than expected
J
combine means having one video frame to be inside another main video frame, not sure what's the term here.
Yes. That’s the term i think. So i can do that using QML. But now i want to have recording in the same format. I cannot make it work.
J
Im currently using opencv. But wondering if qml or pyside can do this in real time or not
K
JeffryYes. That’s the term i think. So i can do that using QML. But now i want to have recording in the same format. I cannot make it work.
If this is rendered in a qml scene, and this isn't two native windows overlayed, but it's combined and rendered on the same surface (we're getting on the edge of my understanding of how the Scene Graph and Qt RHI works, so this may not be completely accurate), you may be able to copy the contents of the surface to an offscreen surface and QOpenGLFramebufferObject, and from that get the pixel result... But, getting this in Python is definitely going to need some C++.
J
after futher debugging, I have a better idea on the problem.. so what I did was to use "streamingVideoOutput.grabToImage(...)" that is ran every 33ms using qml Timer. just with a simple console.log, I can see that normally this will be called 30 times/second, (30fps). But, when I move around the app window, it can go down to 18-20 times/second. Is this a bug with QML's timer or my mistake? or simply Timer runs on UI thread
C
(and tags were pushed...looking at you arojas)
Calendar: September 2025
MoTuWeThFrSaSu123456718891011121314155162171841912021222332425126227528429302
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