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 "rustobjectgetter.h"
#include <QObject>

const uint8_t* getRustProxy(const QObject& qobj)
{
    if (auto* getter = dynamic_cast<const RustObjectGetter*>(&qobj))
        return static_cast<const uint8_t*>(getter->getRustProxy());
    return nullptr;
}