Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwasmservices.cpp
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qwasmservices.h"
6
7
#
include
<
QtCore
/
QUrl
>
8
#
include
<
QtCore
/
QDebug
>
9
10
#
include
<
emscripten
/
val
.
h
>
11
12
QT_BEGIN_NAMESPACE
13
14
bool
QWasmServices::openUrl(
const
QUrl &url)
15
{
16
emscripten::val::global(
"window"
).call<
void
>(
"open"
, url.toString().toEcmaString(),
17
emscripten::val(
"_blank"
));
18
return
true
;
19
}
20
21
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
wasm
qwasmservices.cpp
Generated on
for Qt by
1.16.1