Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Morten Sorvig
Qt Web Utils
Commits
02d75c35
Commit
02d75c35
authored
Nov 02, 2022
by
Morten Sorvig
Browse files
Move window manage explanation to web page.
parent
2a92c4fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/multiple_windows/index.html
View file @
02d75c35
...
...
@@ -28,10 +28,7 @@
cascadeOffset
+=
10
;
n
+=
1
;
// qwm.js implements a minimal/toy html window manager, which we'll
// use for the purpose of this example. Using this window manager is
// not required; the window containers can also be managed using html
// layouts.
// qwm.js implements a minimal/toy html window manager, for the purpose of this example.
let
window
=
new
QwmWindow
(
cascadeOffset
,
cascadeOffset
);
window
.
title
=
"
Window #
"
+
n
;
...
...
@@ -58,14 +55,16 @@
<p>
This example shows how to display multiple Qt windows on a web page,
using a single WebAssembly instance.
</p>
<p>
Clicking the button below adds a new
window
container element to the
page,
and registers it with the application instance. The applicaiton
sees
this element as a new screen, and populates it with a (fullscreen)
<p>
Clicking the button below adds a new
Qt
container element to the
page
and registers it with the application instance. The applicaiton
sees
this element as a new screen, and populates it with a (fullscreen)
window.
</p>
<p>
The application window will appear below, when loaded.
</p>
<p>
The example implements a simple html-based window manager which facilitates
dynamic window creation and placment. However this is not required: Qt
container elments can be positioned using standard html layout features as well.
</p>
<button
type=
"button"
id=
"create-window-button"
disabled
>
Create Window
</button>
</body>
</html>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment