qt5base-lts/examples
Friedemann Kleint a83b2c64a9 Polish the settingseditor example
The example is meant to show an item delegate with a line edit with
QRegularExpression-based validation depending on type.
Unfortunately, this does not work since QSettings mostly
return QString types.

Fix it to a partially working state by
- Making the expressions match from beginning to end which
  was overlooked in the QRegExp->QRegularExpression change.
- Use QCheckBox, QSpinBox for bool/int since it is silly
  to have a user edit a bool value by typing 'true'/'false'.
- Move the expressions out to a separate struct to be
  able to do some guessing of the type when reading
  the QSettings, implement for bool and int.
- Use a fancy Unicode checkmark for displaying bools.
- Fix the garbled display of QByteArray with binary data
  by displaying them with hex characters and setting them
  read-only.

Change-Id: Iba22dfafc3b813b3fd3d2915ef5210d661049382
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2020-07-10 11:31:09 +00:00
..
aggregate
corelib CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
dbus CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
embedded CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
gui CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
network CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
opengl CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
qmake Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qpa CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
qtconcurrent CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
qtestlib CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
sql CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
vulkan CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
widgets Polish the settingseditor example 2020-07-10 11:31:09 +00:00
xml CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
CMakeLists.txt CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
examples.pro Doc: Move touch examples around so they get included in docs 2018-09-14 03:56:22 +00: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.