3 ms·
I understand, but it's not quite necessary if Qt could add some better functionality exposing C++ code in QML. Luckily, someone created a cool library that allo
by rubymamis 3y ago
I understand, but it's not quite necessary if Qt could add some better functionality exposing C++ code in QML. Luckily, someone created a cool library that allows you to create singleShot timer in QML as follows:[1]
`lqtUtils.singleShot(5000, () => console.log("Hello!"))`
[1] https://stackoverflow.com/a/75288105/5865379 https://stackoverflow.com/a/75288105/5865379
I also used his library to share ENUMs between QWidgets (C++) and QML.