ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

386 members
it's build for qwidget but you can use it on qml. follow the offical doc on qt asyncio
Why do I get QApplication.style().name() == "fusion", and QIcon.themeName() == "breeze", whereas the application style is set to breeze in the KDE Settings, and the app theme is generally dark? In the Settings, icons are "breeze" indeed, not "breeze-dark". But other desktop items display bright outlines of icons, and only my app has dark icons.
A
It's Wayland, Qt is 6.11 in the app and 6.10 in the OS.
This is a bit complicated. The theming support is directly baked into the SVGs by using named colors, so there's no need for a separate light/dark icon set. Then, some KDE library injects a plugin into the Qt icon rendering pipeline, that renders the icons according to the system theme and even reacts on theme changes to re-create any icons whenever required. If you run the app on a KDE system and use the platform-provided PySide6 (e.g. by using venv's --system-site-packages switch), it'll automatically work there. Qt bundled with PySide6 wheels doesn't ship the plugin, and thus doesn't re-draw the icons properly.
At least, that's how I understand it. All the Breeze icons have CSS stylesheets attached that define the colors used
T
Not sure if it's implemented via the libraries qt6/plugins/styles/breeze6.so or qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so within /usr/lib/x86_64-linux-gnu/qt6 directory
C
I started that with ChatGPT last year, took really more time. But meanwhile Claude Code is so much better of course, and I am doing pair programming with it all the time 😄
However, although it works well, under extremely high IO loads, it can still cause GUI blocking, resulting in a decrease in FPS.
So now I'm trying to use a thinner layer.
i release 0.2.0 a more thiner layer
Qt's event dispatcher is the master. A zero-interval QTimer pumps asyncio's internal _ready and _scheduled queues. I/O readiness is delivered via QSocketNotifier, converted into standard asyncio handles. All of asyncio's C-accelerated Future, Task, and Handle machinery is preserved — we only replace the bottom-most scheduling layer.
R
Based on my testing, under extremely high loads, it no longer affects GUI rendering at all.
T
Does it work with previous versions? Differences between natively installed PySide vs official wheel inside a virtual environment? Which wayland implementation? The landscape is fractured, because Wayland is only a protocol specification, not an implementation. Some compositors (KWin) provide default decorations, and some implementations (Gnome…) refuse to do so and require applications to do it themselves via libdecor. (At least, that's what I know, that may be outdated on Gnome's side)
Both are in a virtual env.
S
And the wayland implementation that I am using is wayfire, with XFCE4.
Ë
Hey Folks! As of now there is no official example for the Qt Undo subsystem right? But I don't know for C++ is it the same case there? Or does someone have an implementation example for it? :)
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