Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
When you have a QPushButton inside QWidget which is located in QGraphicsView, it does not get hover events if alien widgets are disabled.
To reproduce it compile the following application and run it with environment variable QT_USE_NATIVE_WINDOWS set to a value of 1.
Test case main.cpp to reproduce
#include <QApplication> #include <QGraphicsScene> #include <QGraphicsProxyWidget> #include <QGraphicsView> #include <QPushButton> int main(int argc, char **argv) { QApplication app(argc, argv); QWidget *container = new QWidget; QPushButton* btn = new QPushButton("test", container); QGraphicsScene scene; QGraphicsProxyWidget *proxy = scene.addWidget(container); QGraphicsView view(&scene); view.show(); return app.exec(); }