Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
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
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
ui
qt
utils
variant_pointer.h
Go to the documentation of this file.
1
14
#ifndef UI_QT_VARIANT_POINTER_H_
15
#define UI_QT_VARIANT_POINTER_H_
16
17
#include <QVariant>
18
19
template
<
typename
T>
class
VariantPointer
20
{
21
22
public
:
23
static
T* asPtr(QVariant v)
24
{
25
return
(T *) v.value<
void
*>();
26
}
27
28
static
QVariant asQVariant(T* ptr)
29
{
30
return
QVariant::fromValue((
void
*) ptr);
31
}
32
};
19
template
<
typename
T>
class
VariantPointer
{
…
};
33
34
#endif
/* UI_QT_VARIANT_POINTER_H_ */
VariantPointer
Definition
variant_pointer.h:20
Generated by
1.9.8