ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

1 October 2022
2022-10-01×
1 October 2022
Dear fellows, what is the best way to handle global variables in QML/Python? I managed to expose Python classes via QmlElement, but I suppose that the management of global variables should now be in charge of QML, correct?
F
Let's say I opened a file and now I have a folder_path and file_name variable that must be accessed in all qml files and also in some python classes. What would be the best way to track these variables across the application? Thanks in advance!
You don't need *all* the modules. For instance, skip QtWebEngine if you can - that one takes a *long* time to compile - it dwarfs all other modules. Of course if you need it, by all means include it. The init_repository script can help you pick and choose which modules you want. Call it with --help.
K
@Chinese_soup first just try building qtbase and qtdeclarative. That should give you enough to do what you want - QML rendering. I think qtquickcontrols2 module got moved into the qtdeclarative module with Qt6. If not, include that too (it also got renamed to just qtquickcontrols with the move to Qt 6).
Calendar: October 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