qt5base-lts/examples
Simon Hausmann 38cd18384f Fix OpenGL vs. GLESv2 linkage, attempt number three
We introduced WrapOpenGL to link against either desktop GL or GLESv2
depending on the GL feature in QtGui. This works "fine", with two
caveats:

    (1) find_package(WrapOpenGL) must be called after
    find_package(Qt5Gui) in order for the feature check in
    FindWrapOpenGL.cmake to work. That's error prone.

    (2) More and more places are popping up, in particular examples,
    where GL linkage is required due to inline functions in Qt that
    forward to GL functions - such as on Android.

    This in particular explains the qmake behavior of making the GL
    linkage (desktop _or_ GLES) a public dependency of QtGui, so only
    Gui linkage is required.

Those two aspects combined are the nail in the coffin of FindWrapOpenGL
and it would seem much easier to simply make the Desktop GL vs. GLES
decision once in Gui's CMakeLists.txt and let Qt5GuiDependencies.cmake
propagate this well. This allows us to get rid of plenty of special
cases as well.

Change-Id: I3a7e8af49537ce5f215f24470e075a4ae9aeb944
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2019-06-05 09:38:02 +00:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
dbus Rerun pro2cmake on projects that use .ui files 2019-05-22 14:58:24 +00:00
embedded Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
gui Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
network Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:51:20 +02:00
opengl examples: port away from Java-style iterators 2019-05-23 17:30:51 +02:00
qmake Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qpa Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
qtconcurrent Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
qtestlib CMake: Add more examples 2019-03-26 13:03:01 +00:00
sql Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:51:20 +02:00
vulkan Fix use of qrand/qsrand in an example 2019-04-01 14:39:53 +00:00
widgets Fix OpenGL vs. GLESv2 linkage, attempt number three 2019-06-05 09:38:02 +00:00
xml Prefix textstream operators with Qt:: 2019-05-02 11:52:02 +00:00
CMakeLists.txt CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
examples.pro Doc: Move touch examples around so they get included in docs 2018-09-14 03:56:22 +00:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.