Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.0
-
None
-
-
1731d8af7 (dev), 4a27d0fe0 (6.8), deadc8b1a (6.8.1)
Description
Calling QWidget::childAt on a widget that has empty children (width or height is 0) can return said children. The following code triggers the assert in 6.8.0, but not in 6.7:
#include <QApplication> #include <QWidget> #include <cassert> int main(int argc, char **argv) { QApplication app(argc, argv); QWidget parent(nullptr, Qt::FramelessWindowHint); parent.resize(200, 200); QWidget *emptyChild = new QWidget(&parent); emptyChild->setGeometry(0, 100, 200, 0); assert(parent.childAt(100, 100) == nullptr); }
Attachments
Issue Links
- resulted from
-
QTBUG-128391 QWidget inside a QMenu using QWidgetAction does not always receive enterEvent and leaveEvent
- Closed