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

21 lines
405 B
C
Raw Normal View History

2021-02-04 16:59:58 +08:00
#ifndef DEMOBRIDGE_H
#define DEMOBRIDGE_H
#include <QObject>
2021-06-08 11:43:34 +08:00
#include <QQmlApplicationEngine>
2021-02-04 16:59:58 +08:00
class DoricDemoBridge : public QObject {
Q_OBJECT
public:
2021-06-08 11:43:34 +08:00
explicit DoricDemoBridge(QQmlApplicationEngine *engine,
QObject *parent = nullptr);
2021-02-04 16:59:58 +08:00
Q_INVOKABLE
2021-06-10 14:06:36 +08:00
void navigate(QVariant source, QVariant alias);
2021-06-08 11:43:34 +08:00
private:
QQmlApplicationEngine *mEngine;
2021-02-04 16:59:58 +08:00
};
#endif // DEMOBRIDGE_H