qtbridge-runtime 0.1.9

Qt Bridge: bridging code to be run in applications.
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2026 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only

#include "qml_method_invoker.h"

void connect_destroyed_callback(QObject *obj, std::uintptr_t flag_ptr)
{
    QObject::connect(obj, &QObject::destroyed, [flag_ptr](QObject *) {
        on_qobject_destroyed(flag_ptr);
    });
}