https://github.com/sunnycapturer/qt-firebase-client
Calling the firebase library to implement google analytics using the Qt5 client.
https://github.com/sunnycapturer/qt-firebase-client
analytics cpp firebase google qt
Last synced: 2 months ago
JSON representation
Calling the firebase library to implement google analytics using the Qt5 client.
- Host: GitHub
- URL: https://github.com/sunnycapturer/qt-firebase-client
- Owner: SunnyCapturer
- Created: 2023-07-14T12:09:27.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-15T09:23:41.000Z (almost 3 years ago)
- Last Synced: 2024-12-28T00:46:58.667Z (over 1 year ago)
- Topics: analytics, cpp, firebase, google, qt
- Language: C++
- Homepage:
- Size: 210 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
使用 Qt5 写一个 QWdiget ,调用 firebase_cpp_sdk 移动端的库,一个使用示范。
## 简介
1. 下载 [Firebase C++ SDK](https://firebase.google.com/download/cpp?hl=zh-cn),然后将 SDK 解压缩到方便的位置。
2. 解压后,将 `include`、`libs` 两个文件夹拷贝到 `Qt-Firebase-Client\tripartite` 下即可
3. 在 main.cpp 中即可编译和与运行
```cpp
#include "widget.h"
#include
//#include "analytics.h" # 此两种方式,均可找到头文件
#include "firebase/analytics.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Widget w;
w.show();
return a.exec();
}
```
4. 但本项目中,已将 firebase_cpp sdk 的头文件直接上传,故只用拷贝 `libs` 文件夹即可。
1. 在创建 [firebase ](https://console.firebase.google.com/?hl=zh-cn) 创建项目