This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/app/demo/DoricDemoBridge.h
2021-07-21 19:03:29 +08:00

21 lines
405 B
C++

#ifndef DEMOBRIDGE_H
#define DEMOBRIDGE_H
#include <QObject>
#include <QQmlApplicationEngine>
class DoricDemoBridge : public QObject {
Q_OBJECT
public:
explicit DoricDemoBridge(QQmlApplicationEngine *engine,
QObject *parent = nullptr);
Q_INVOKABLE
void navigate(QVariant source, QVariant alias);
private:
QQmlApplicationEngine *mEngine;
};
#endif // DEMOBRIDGE_H