qt6-bb10/examples/widgets/widgets
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
..
analogclock Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
calculator Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
calendarwidget Unify license header usage. 2016-03-29 10:20:03 +00:00
charactermap Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
codeeditor Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
digitalclock Unify license header usage. 2016-03-29 10:20:03 +00:00
elidedlabel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
groupbox Unify license header usage. 2016-03-29 10:20:03 +00:00
icons Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
imageviewer Convert features.printdialog to QT_[REQUIRE_]CONFIG 2017-05-30 17:21:26 +00:00
lineedits Unify license header usage. 2016-03-29 10:20:03 +00:00
mousebuttons Convert features.wheelevent to QT_CONFIG 2017-06-28 16:15:09 +00:00
movie QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
scribble Convert features.printdialog to QT_[REQUIRE_]CONFIG 2017-05-30 17:21:26 +00:00
shapedclock Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
sliders Unify license header usage. 2016-03-29 10:20:03 +00:00
spinboxes Unify license header usage. 2016-03-29 10:20:03 +00:00
styles Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
stylesheet Example: migrate stylesheet example to use QRegularExpression 2017-02-15 14:45:29 +00:00
tablet Merge remote-tracking branch 'origin/5.10' into dev 2017-11-30 09:16:58 +01:00
tetrix Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
tooltips Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
validators Unify license header usage. 2016-03-29 10:20:03 +00:00
wiggly Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
windowflags Unify license header usage. 2016-03-29 10:20:03 +00:00
README
widgets.pro Fix out-of-tree compilation of widget examples 2014-02-11 12:35:03 +01:00

README

Qt comes with a large range of standard widgets that users of modern
applications have come to expect.

You can also develop your own custom widgets and controls, and use them
alongside standard widgets.

It is even possible to provide custom styles and themes for widgets that can
be used to change the appearance of standard widgets and appropriately
written custom widgets.


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