ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

snapshot for November 2022
‹ November 2022 ›×
29 November 2022
A
Hi there! I wonder if its safe to have multiple QQmlEngine's in single app?
AFAIK no, it's usually a similar idea that with Q*Application. I don't know the technicalities though, because I don't have much experience with QML
C
everything might be boiled down to the fact that the engine needs to handle the context hierarchy
K
Alexey MHi there! I wonder if its safe to have multiple QQmlEngine's in single app?
I have more familiarity with QML. As far as I'm aware, you can only have one QQmlEngine running in a given process. Now, Qt has a solution for this that is commercial/GPLv3 (not LGPL). That is the Qt Application Manager, which orchestrates multiple Qt QML processes. https://doc.qt.io/QtApplicationManager/singlevsmultiprocess.html I'm not actually sure if Qt for Python wraps that or not. @cmaureir do you know?
A
Is there a Python class to ease the creation of UI files from Python code? Say, I have a bunch of widgets of a Borland Delphi form.
K
So, not part of the official full Qt offering - it's a separate thing. I think we offer it bundled with the Automotive suite commercially. It is available as OSS though (GPLv3 only).
K
Someone would have to take the mantle of making the Python bindings using shiboken. If anyone here wanted to do that, you'd have some folks to help answer any shiboken questions they may have.
But i wonder if by its own does it make sense, because there is no automotive support in pyside i mean
C
Oof there are many third party dependencies, not sure if it would be an easy task
K
I mean, I guess they need to be bundled, and built for each platform, but no Python interfaces need to be created for them, would they?
K
I haven't played around with it, though a couple of co-workers are using it now IIRC.
30 November 2022
it really depends on the theme, I have implemented a little switch for a toy app to change from Material.Dark to Material.Light :P but I'm not sure if that's the "recommended approach" as I mentioned before, I don't have much experience developing things with QML :P
if you are not using Material or other fancy themes, I guess you would need to implement both styles and handle the switching by yourself
not sure if there are qml examples that do that..
C
no idea, you might have better luck on a qt/qml channel or the forum
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