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
4
#
include
"qwasmservices.h"
5
6
#
include
<
QtCore
/
QUrl
>
7
#
include
<
QtCore
/
QDebug
>
8
9
#
include
<
emscripten
/
val
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
bool
QWasmServices::openUrl(
const
QUrl &url)
14
{
15
emscripten::val::global(
"window"
).call<
void
>(
"open"
, url.toString().toEcmaString(),
16
emscripten::val(
"_blank"
));
17
return
true
;
18
}
19
20
QT_END_NAMESPACE
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
wasm
qwasmservices.cpp
Generated on
for Qt by
1.14.0