Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0
-
Windows 7
-
9b7fc15edf47885f9b2894e354790c47ecdb3886
Description
In Qt5 "What's this" event is missing and functionality with mouse is broken. All works in Qt4.
To reproduce run code below and do:
1. Press QDialog Help/"?" button from title bar.
- Cursor changes correctly.
- Expected: EventFilter "QEvent::EnterWhatsThisMode" should be printed.
2. Press mouse button on top of dialog
- Cursor changes to Normal.
- Expected: "Lorem Ipsum.." tooltip help text should appear to the mouse position
Alternative help "shift + F1" works.
#include <QApplication> #include <QDialog> #include <QDebug> class myEventFilter: public QObject { public: myEventFilter() : QObject() {} ~myEventFilter(){} bool eventFilter(QObject* object,QEvent* event) { if( event->type() == QEvent::EnterWhatsThisMode) qDebug() << "QEvent::EnterWhatsThisMode"; return QObject::eventFilter(object,event); } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); a.installEventFilter(new myEventFilter()); QDialog d; d.setWhatsThis("Lorem Ipsum.."); d.show(); return a.exec(); }
Attachments
Issue Links
- replaces
-
QTBUG-32782 The ? button on Windows caption bar does not trigger the "What this mode"
- Closed