Compare commits
6 Commits
cff7223a0c
...
f67967ff71
Author | SHA1 | Date |
---|---|---|
|
f67967ff71 | 7 months ago |
|
4273feac19 | 7 months ago |
|
0e2f84924c | 7 months ago |
|
c276cb8180 | 7 months ago |
|
4885ad71e6 | 7 months ago |
|
dadfe2e40f | 7 months ago |
Binary file not shown.
Binary file not shown.
@ -1,21 +1,13 @@
|
|||||||
#include "qweb.h"
|
#include "qweb.h"
|
||||||
#include "ui_qweb.h"
|
#include "ui_qweb.h"
|
||||||
|
|
||||||
QWeb::QWeb(QWidget *parent)
|
QWeb::QWeb(QWidget *parent) : QWidget(parent), ui(new Ui::QWeb) {
|
||||||
: QWidget(parent)
|
ui->setupUi(this);
|
||||||
, ui(new Ui::QWeb)
|
|
||||||
{
|
|
||||||
ui->setupUi(this);
|
|
||||||
|
|
||||||
mWeb = new QWebEngineView(this);
|
|
||||||
|
|
||||||
ui->verticalLayout->addWidget(mWeb);
|
|
||||||
mWeb->load(QUrl("https://www.baidu.com"));
|
|
||||||
|
|
||||||
|
mWeb = new QWebEngineView(this);
|
||||||
|
|
||||||
|
ui->verticalLayout->addWidget(mWeb);
|
||||||
|
mWeb->load(QUrl("https://www.baidu.com"));
|
||||||
}
|
}
|
||||||
|
|
||||||
QWeb::~QWeb()
|
QWeb::~QWeb() { delete ui; }
|
||||||
{
|
|
||||||
delete ui;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue