qt6-bb10/src/widgets
Tor Arne Vestbø 705dbea2a9 Call QWidget::setVisible, not QWidgetPrivate, when showing children
As part of 5ba0982b28 we started calling
QWidgetPrivate::setVisible instead of QWidget::setVisible when showing
children, to avoid setting ExplicitShowHide.

Unfortunately some widget subclasses wrongly override setVisible to do
initialization, which resulted in these widgets not running their init
code. The documentation clearly specifies to use showEvent or Polish
for this use case, but to avoid a regression we temporarily set a flag
that prevents QWidget::setVisible from setting the ExplicitShowHide
attribute.

We can not rely on simply unsetting ExplicitShowHide after our call
to QWidget::setVisible, as the call might recurse into logic that
checks ExplicitShowHide and wrongly determines that the show is
explicit.

Fixes: QTBUG-126721
Fixes: QTBUG-126218
Pick-to: 6.7
Change-Id: Ibf88340b68cb4fcb20ce3d8ec5b76de0fd2d2551
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit fc4c6fb5f6bd6bd63b13f1f8b5b7a7289a5fd230)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-07-07 09:03:17 +00:00
..
accessible Fix accessibility of list views with underlying multi-column model 2024-06-26 22:52:30 +00:00
compat Add parent arg to QFileDialog::getOpenFileContent and saveFileContent 2023-12-28 17:16:12 +01:00
dialogs Return button index for deprecated QMessageBox APIs 2024-06-06 10:37:23 +00:00
doc Use QModelIndex::data() 2024-06-21 00:19:04 +00:00
effects Move qt_blurImage to Qt GUI 2024-03-14 19:11:52 +01:00
graphicsview QGraphicsProxyWidget: use focus abstraction instead of focus_next/prev 2024-03-18 17:21:22 +01:00
itemviews Skip rendering border for the decoration area of the tree view 2024-06-21 13:34:45 +00:00
kernel Call QWidget::setVisible, not QWidgetPrivate, when showing children 2024-07-07 09:03:17 +00:00
platform/ios cmake: Generate Apple privacy manifest files for Qt modules 2024-02-13 21:53:34 +01:00
styles Fusion style/QProgressBar: don't ignore the paint offset 2024-07-03 20:11:59 +00:00
util Widgets: silence clang's -Wimplicit-fallthrough 2024-05-27 08:55:58 +08:00
widgets QLabel: cleanup QLabelPrivate 2024-06-22 07:32:39 +00:00
CMakeLists.txt Remove GENERATE_CPP_EXPORTS argument 2024-06-13 14:39:17 +00:00
Qt6WidgetsMacros.cmake CMake: Add `qt_add_ui` API 2024-05-07 21:12:29 +02:00
QtWidgets.dynlist
configure.cmake Introduce new empty Windows 11 style 2023-10-27 18:32:54 +02:00
qt_cmdline.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00