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
6
7#include <QtCore/QUrl>
8#include <QtCore/QDebug>
9
10#include <emscripten/val.h>
11
13
14bool 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
21QT_END_NAMESPACE
Combined button and popup list for selecting options.