API Documentation
Toggle main menu visibility
Main Page
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
c
d
e
f
g
i
j
k
l
m
n
o
r
s
u
v
Properties
Related Symbols
c
d
f
h
i
l
m
n
q
r
s
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
c
d
e
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
Typedefs
b
g
p
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Loading...
Searching...
No Matches
WebViewWidget.h
Go to the documentation of this file.
1
/*#pragma once
2
#include <QtWebView>
3
#include <QQuickWidget>
4
#include <QVBoxLayout>
5
#include <QWidget>
6
namespace NDEVR
7
{
8
9
class WebViewWidget : public QWidget
10
{
11
Q_OBJECT
12
public:
13
WebViewWidget(QWidget* parent = nullptr)
14
: QWidget(parent)
15
{
16
// Wrap QWebView in QQuickWidget
17
qmlWidget = new QQuickWidget(this);
18
qmlWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
19
qmlWidget->setSource(QUrl("qrc:/qml/webview.qml")); // Example QML file
20
21
// Layout setup
22
QVBoxLayout* layout = new QVBoxLayout(this);
23
layout->addWidget(qmlWidget);
24
setLayout(layout);
25
}
26
private:
27
QQuickWidget* qmlWidget;
28
};
29
}*/
WebViews
Headers
WebViewWidget.h