qt5base-lts/examples/widgets/painting
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
..
affine Doc: modify connect statement to new syntax 2017-11-29 14:09:31 +00:00
basicdrawing Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
composition Allow QImage with more than 2GByte of image data 2017-07-08 08:17:13 +00:00
concentriccircles Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
deform Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
fontsampler Convert features.printdialog to QT_[REQUIRE_]CONFIG 2017-05-30 17:21:26 +00:00
gradients Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
imagecomposition Unify license header usage. 2016-03-29 10:20:03 +00:00
painterpaths Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
pathstroke pathstroke example: Add Q_FALLTHROUGH to unmarked fallthrough seen by GCC 7 2017-07-09 11:07:17 +00:00
shared Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
transformations Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
painting.pro
README

Qt's painting system is able to render vector graphics, images, and outline
font-based text with sub-pixel accuracy accuracy using anti-aliasing to
improve rendering quality.

These examples show the most common techniques that are used when painting
with Qt, from basic concepts such as drawing simple primitives to the use of
transformations.


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