path: root/src/widgets/doc/src/qt6-changes.qdoc
diff options
authorVolker Hilsheimer <>2020-10-14 23:40:34 +0200
committerVolker Hilsheimer <>2020-10-16 04:44:13 +0200
commit215594d664f6fc7057468a05a59344f08a78a976 (patch)
treec2c31c30383e4090c6da0f31a4fcf1ca098a769c /src/widgets/doc/src/qt6-changes.qdoc
parentef1905aebc4c4961c859bd781398dc6cea89d3a0 (diff)
Purge QDesktopWidget
It's no longer used; the only calls to QApplicationPrivate::desktop pass the default nullptr for QScreen, so all we need is a Qt::Desktop type toplevel widget. Include changes documentation about both the class and QApplication::desktop being gone in Qt 6. Change-Id: I22d6e93cabc6aaaefffe5e96942886a2ef4e0609 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/widgets/doc/src/qt6-changes.qdoc')
1 files changed, 13 insertions, 1 deletions
diff --git a/src/widgets/doc/src/qt6-changes.qdoc b/src/widgets/doc/src/qt6-changes.qdoc
index 4f0379a2f6..47e02dc6c9 100644
--- a/src/widgets/doc/src/qt6-changes.qdoc
+++ b/src/widgets/doc/src/qt6-changes.qdoc
@@ -41,6 +41,18 @@
In this topic we summarize those changes in Qt Widgets, and provide
guidance to handle them.
- \section1 ADD STUFF HERE
+ \section1 Kernel classes
+ \section2 QDesktopWidget and QApplication::desktop()
+ QDesktopWidget was already deprecated in Qt 5, and has been removed in
+ Qt 6, together with QApplication::desktop().
+ QScreen provides equivalent functionality to query for information about
+ available screens, screen that form a virtual desktop, and screen
+ geometries.
+ Use QWidget::setScreen() to create a QWidget on a specific display;
+ note that this does not move a widget to a screen in a virtual desktop
+ setup.