Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32835

"What's this" event missing and feature broken.

XMLWordPrintable

    • 9b7fc15edf47885f9b2894e354790c47ecdb3886

      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();
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            shausman Simon Hausmann
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes