Skip to content
  • Vlad Zahorodnii's avatar
    scripting: Make QTimer constructible · 71a1ff04
    Vlad Zahorodnii authored
    If a QObject is exposed to js using QJSEngine::newQMetaObject(), a new
    instance of it can be made only with constructors exposed by Q_INVOKABLE
    
    At the moment, QTimer's constructor is not Q_INVOKABLE, so code such as
    `const timer = new QTimer()` will not work.
    
    BUG: 439630
    FIXED-IN: 5.22.4
    
    
    (cherry picked from commit d29954ae)
    71a1ff04