File: qtwebengine5-examples.README.Debian

package info (click to toggle)
qtwebengine-opensource-src 5.15.18%2Bdfsg-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 2,115,048 kB
  • sloc: cpp: 13,169,354; ansic: 4,248,321; javascript: 1,917,440; python: 554,858; asm: 529,966; xml: 496,623; java: 151,702; objc: 80,776; perl: 73,361; sh: 71,244; cs: 30,383; makefile: 21,992; yacc: 9,125; tcl: 8,500; php: 5,896; sql: 5,518; pascal: 4,510; lex: 2,884; lisp: 2,727; ruby: 559; awk: 200; sed: 40
file content (71 lines) | stat: -rw-r--r-- 2,107 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Overview
========
This package contains example Qt WebEngine projects provided by Qt to
demonstrate how to use some of its capabilities.  Each example project includes
the source files as well as a compiled binary.  If you would like to compile
the binaries yourself you need to install qt5-qmake and qtwebengine5-dev.
Compiling the webenginewidgets/spellchecker example requires the
qwebengine_convert_dict utility, which is installed by the
qtwebengine5-dev-tools package.

You also need to have a functioning C++ compiler and Make.  If you install
build-essential it will take care of this for you.  If you prefer a different
C++ compiler than what build-essential installs (g++), you can handle this
yourself.


Compiling
=========
To compile the example projects, copy them to a directory where you have write
permissions.  Then run the following two commands.

    $ qmake <.pro file>

    $ make


/usr/lib/x86_64-linux-gnu/qt5/examples/webenginewidgets/contentmanipulation/
jquery.min.js

is a symbolic link to

../../../../../../share/javascript/jquery/jquery.min.js

If you dereference the symbolic link at copy using the -L argument this won't
cause a problem.  Otherwise, after copying the files to a directory where you
have write permissions, it might not point to the appropriate place.  To fix
this, cd to the contentmanipulation directory, delete the symlink, and recreate
it with an absolute path.

    $ rm jquery.min.js

    $ ln -s /usr/share/javascript/jquery/jquery.min.js


Examples
========
To compile webengine/customdialogs, cd to that directory and run:

    $ qmake customdialogs.pro

    $ make


To compile all the examples under webengine, cd to webengine and run:

    $ qmake webengine.pro

    $ make


QMake
=====
QMake converts the information in the .pro file into a traditional Makefile,
which can then be used by Make to build the project.  Additional information
about QMake can be found at:

    https://doc.qt.io/qt-5/qmake-manual.html

Note that upstream is slowly deprecating QMake in favor of CMake.

    https://www.qt.io/blog/2019/08/07/technical-vision-qt-6