qt5base-lts/examples
Eskil Abrahamsen Blomfeldt 4d88d79aa5 Update usage of QFontMetrics::width() to new API
QFontMetrics(F)::width() has been deprecated and is replaced by
horizontalAdvance(). This updates all usage of it in tests and
documentation.

It is worth noting that many or most of the usages of
QFontMetrics::width() probably intended to use boundingRect().width(),
but since it currently works, I have not looked into that, just
replaced the function name mechanically.

Change-Id: Iec382e5bad0b50f37a6cfff841bfb46ed4d4555f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-12-08 15:06:32 +00:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
dbus Use dependencies instead of CONFIG+=ordered 2017-12-02 11:09:15 +00:00
embedded Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
gui doc: cleanup raster window example 2017-07-03 10:20:37 +00:00
network Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
opengl Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
qmake Unify license header usage. 2016-03-29 10:20:03 +00:00
qpa Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
qtconcurrent Revamp QtConcurrent examples to C++11 2017-11-07 09:42:34 +00:00
qtestlib Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
sql Merge remote-tracking branch 'origin/5.9' into 5.10 2017-09-20 11:58:32 +02:00
touch Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
vulkan hellovulkantexture: Fix issues with new validation layer 2017-10-16 08:15:39 +00:00
widgets Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
xml Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
examples.pro examples: fix compile without opengl support 2017-08-29 20:30:45 +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.