qt6-bb10/examples/widgets/widgets
Volker Hilsheimer 44fb925f50 Phase 2 of removing QDesktopWidget
Remove QDestopWidget public header, simplify the implementation that
maintains a Qt::Desktop type QWidget for each QScreen, and turn
QWidget's initial target screen into a QScreen pointer.

QApplication::desktop() now takes an optional QScreen pointer, and
returns a QWidget pointer, so that applications and widgets can get
access to the root widget for a specific screen without having to
resort to private APIs.

QDesktopWidgetPrivate implementations to look up a screen for an index,
widget, or point are now all inline functions that thinly wrap
QGuiApplication::screens/screenAt calls. We should consider adding those
as convenience APIs to QScreen instead.

Note that QWidget::screen is assumed to return a valid pointer; there is
code that handles the case that it returns nullptr (but also code that
trusts that it never is nullptr), so this needs to be defined, verified
with tests, and asserted. We can then simplify the code further.

Change-Id: Ifc89be65a0dce265b6729feaf54121c35137cb94
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-06-08 20:29:49 +02:00
..
analogclock Regenerate examples 2020-02-04 18:50:39 +00:00
calculator Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
calendarwidget QComboBox: remove currentIndexChanged(const QString&) 2020-02-19 11:32:40 +00:00
charactermap Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
codeeditor Regenerate examples 2020-02-04 18:50:39 +00:00
digitalclock Regenerate examples 2020-02-04 18:50:39 +00:00
elidedlabel Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
groupbox Regenerate examples 2020-02-04 18:50:39 +00:00
icons High-DPI: Remove usages of Qt::AA_UseHighDpiPixmaps 2020-03-30 08:43:02 +01:00
imageviewer Merge remote-tracking branch 'origin/5.15' into dev 2020-03-16 18:41:27 +01:00
lineedits Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
mousebuttons Regenerate examples 2020-02-04 18:50:39 +00:00
movie Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
scribble Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
shapedclock Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
sliders Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
spinboxes Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
styles Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
stylesheet Regenerate examples 2020-02-04 18:50:39 +00:00
tablet Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
tetrix Regenerate examples 2020-02-04 18:50:39 +00:00
tooltips Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
validators Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
wiggly Regenerate examples 2020-02-04 18:50:39 +00:00
windowflags Regenerate examples 2020-02-04 18:50:39 +00:00
CMakeLists.txt CMake: Add widgets examples 2019-03-26 15:25:39 +00:00
README
widgets.pro

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.