qt5base-lts/examples/widgets/graphicsview
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
..
anchorlayout CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
basicgraphicslayouts CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
boxes Fix OpenGL vs. GLESv2 linkage, attempt number three 2019-06-05 09:38:02 +00:00
chip Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
collidingmice Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
diagramscene Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-06-03 15:14:42 +02:00
dragdroprobot Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
elasticnodes Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
embeddeddialogs Rerun pro2cmake on projects that use .ui files 2019-05-22 14:58:24 +00:00
flowlayout Merge commit 'dev' into 'wip/cmake-merge' 2019-04-16 16:32:08 +02:00
padnavigator Rerun pro2cmake on projects that use .ui files 2019-05-22 14:58:24 +00:00
simpleanchorlayout CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
weatheranchorlayout CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
CMakeLists.txt CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
graphicsview.pro Make sure we can build with -no-feature-draganddrop 2018-05-29 18:31:35 +00:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00

Qt is provided with a comprehensive canvas through the GraphicsView
classes.

These examples demonstrate the fundamental aspects of canvas programming
with Qt.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.