-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (26 loc) · 719 Bytes
/
main.cpp
File metadata and controls
32 lines (26 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "mainwindow.h"
#include <QApplication>
#include <QPushButton>
#include <QLayout>
#include <QDebug>
#include <QWidget>
#include <stdio.h>
#include "qcefwebview.h"
#include "clienthandler.h"
#include "clientapp.h"
#include <thread>
#include <include/cef_app.h>
#include "include/cef_client.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QCefWebView *webView = new QCefWebView();
MainWindow w;
QWidget *browserWidget = w.findChild<QWidget *>("browserWidget");
QVBoxLayout *browserLayout = new QVBoxLayout(browserWidget);
browserLayout->addWidget( webView);
w.show();
std::thread bthread([&] { a.exec(); });
CefRunMessageLoop();
return 0;
}