diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-04-14 13:23:49 +0200 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2025-04-17 11:34:27 +0000 |
| commit | e8d28ae0063282a20f6095a173472bb7da4d5c74 (patch) | |
| tree | f6764ef4858f8fd71d81bd4cd163ba01219c575c /src/opengl/doc/snippets/code | |
| parent | e2beffe6f55daa55a9307290fd53175af76c729a (diff) | |
QMenu: show when QWidget::childrenRect is not empty
Amends 353ce5344fbde5a6cecbdd2c131e1cf0f4b7f383 after which QMenu::popup
returned early and without showing the menu if none of the actions had a
valid geometry in the menu.
This broke use cases where QMenu was used as a regular container widget
with child widgets (possibly in a layout). To fix this, take the result
of QWidget::childrenRect() into account, and only return early if that
rect is also empty.
Task-number: QTBUG-129108
Fixes: QTBUG-135933
Change-Id: I05977044411df236146bb81dc08a30c176dfb6cb
Reviewed-by: David Faure <david.faure@kdab.com>
(cherry picked from commit 7ffa6f1dd5c47196ac05300bd990b673c7cca976)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit c78963023a4a200a298489648a4e6019400c073c)
Diffstat (limited to 'src/opengl/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
