qt6-bb10/tests/auto/widgets/kernel
Axel Spoerl b9ee6d3b2e QWindowContainer: Don't embed a QWidget
Embedding a QWidget in a window container (via its windowHandle())
may cause crashes, e.g. during drag & drop and when the application
goes out of scope.

If a QWidget->windowHandle() is attempted to be embedded in a window
container, return the pointer to the widget instead of creating a
container.

Add an autotest.

Update documentation.

[ChangeLog][QtWidgets][QWindowContainer] If createWindowContainer()
is called with a QWidgetWindow argument, return pointer to the
widget instead of new container.

Pick-to: 6.7
Fixes: QTBUG-119113
Change-Id: Id052a03be13adce05bbd025d86270d265dfb662e
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-12-21 18:49:29 +00:00
..
qaction CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qactiongroup CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qapplication Debounce QDeferredDeleteEvents in QObject::deleteLater() 2023-12-15 18:21:22 +01:00
qboxlayout CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qformlayout Purge empty BLACKLIST files from tests 2023-11-24 18:09:16 +01:00
qgesturerecognizer tst_QGestureRecognizer: port away from Q_FOREACH 2023-08-07 23:56:10 +02:00
qgridlayout QtWidgets tests: port remaining users away from Q_FOREACH 2023-08-14 23:11:54 +03:00
qlayout CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qshortcut Use QtGui to match QWindow based shortcuts, even when QApplication is used 2023-10-11 20:32:05 +02:00
qsizepolicy CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qstackedlayout CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qtooltip Set correct content size for tool tip label 2023-12-15 19:42:19 +01:00
qwidget QWidget: deliver DragLeave events symmetrically 2023-12-20 20:46:39 +01:00
qwidget_window Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
qwidgetaction CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qwidgetmetatype CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qwidgetrepaintmanager CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qwidgetsvariant CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qwindowcontainer QWindowContainer: Don't embed a QWidget 2023-12-21 18:49:29 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00