ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

сообщение · 2022-10-04 20:09 UTC
F
I'm trying to use @QmlSingleton to manage my global variables in python. According to the documentation I only need to use @QmlElement followed by @QmlSingleton so that QQmlEngine will try to create a singleton instance using the type’s default constructor. This is the code so far: QML_IMPORT_NAME = "g1.backend.main" QML_IMPORT_MAJOR_VERSION = 1 @QmlElement @QmlSingleton class MySingleton(QObject): def __init__(self): self.folderPath = scriptDir + os.path.sep + '\\temp\\' @Slot(result=str) def getArea(self): return self.folderPath

All messages on 4 October 2022 · Whole feed · оригинал в Telegram

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