Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmeventdispatcher.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
5#include "qwasmintegration.h"
6
7#include <QtGui/qpa/qwindowsysteminterface.h>
8
10
11// Note: All event dispatcher functionality is implemented in QEventDispatcherWasm
12// in QtCore, except for processPostedEvents() below which uses API from QtGui.
18
20{
21 // This function is called when the application is ready to paint
22 // the first frame. Send the qtlaoder onLoaded event first (via
23 // the base class implementation), and then enable/call requestUpdate
24 // to deliver a frame.
26
27 // Make sure all screens have a defined size; and pick
28 // up size changes due to onLoaded event handling.
29 QWasmIntegration *wasmIntegration = QWasmIntegration::get();
30 wasmIntegration->resizeAllScreens();
31
32 wasmIntegration->releaseRequesetUpdateHold();
33}
34
bool processPostedEvents() override
static QWasmIntegration * get()
static bool sendWindowSystemEvents(QEventLoop::ProcessEventsFlags flags)
Combined button and popup list for selecting options.