qtbase/examples
Assam Boudjelthia 43148c8a55 Image Gestures Example: use QFileInfo for images file names
The example keeps around image file names only and append
them to the selected dir path, that works fine for file
scheme files, but for Android with content scheme files,
that doesn't work as good because usually the paths are
returned by a provider and managing them manually like
appending a file name to a directory (tree) path might not
work.

This patch retrieves QFileInfo objects and use the absolute
file paths to open any image.

Fixes: QTBUG-116181
Change-Id: I9911a181d92ba0452500398cbe052b9583bd79a0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit 381612f794)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2023-08-31 22:27:05 +00:00
..
aggregate
corelib savegame ex.: revamp the way print() works 2023-05-11 15:31:44 +02:00
dbus Fix building the dbus examples in CI with qmake and MSVC 2022-05-19 14:19:03 +02:00
embedded Remove .prev_CMakeLists.txt 2021-12-06 12:43:52 +00:00
gui Remove .prev_CMakeLists.txt 2021-12-06 12:43:52 +00:00
network Doc: Fix typo and mismatch between code and description 2022-11-30 14:19:08 +00:00
opengl Examples: Add missing include guards 2023-02-01 19:39:09 +00:00
qmake Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qpa Examples: Add missing include guards 2023-02-01 19:39:09 +00:00
qtconcurrent Remove .prev_CMakeLists.txt 2021-12-06 12:43:52 +00:00
qtestlib Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 17:41:02 +00:00
sql Remove .prev_CMakeLists.txt 2021-12-06 12:43:52 +00:00
vulkan Examples: Add missing include guards 2023-02-01 19:39:09 +00:00
widgets Image Gestures Example: use QFileInfo for images file names 2023-08-31 22:27:05 +00:00
xml Remove .prev_CMakeLists.txt 2021-12-06 12:43:52 +00:00
CMakeLists.txt Build examples in isolated sub-builds using ExternalProject 2021-05-26 13:33:29 +02:00
README
examples.pro Turn off the dbus examples for qmake-generated VS projects 2021-02-09 15:45:06 +01:00

README

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.