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

mouseDoubleClickEvent not working for QVideoWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.0.1
    • Multimedia
    • Linux x64, Qt-Creator 2.7.0, Qt-5.0.1
    • Its fixed in 5.0.2

    Description

      #include <QApplication>
      #include <QMainWindow>
      #include <QMouseEvent>
      #include <QMediaPlayer>
      #include <QVideoWidget>
      #include <QDebug>

      class myVideoWidget : public QVideoWidget
      {
      public:
      myVideoWidget(){}

      void mouseDoubleClickEvent ( QMouseEvent * )

      { qDebug ("NOT WORKING!"); }

      };

      int main(int argc, char **argv)
      {
      QApplication app(argc, argv);

      QMediaPlayer *player = new QMediaPlayer;
      myVideoWidget *window = new myVideoWidget;

      player -> setVideoOutput (window);
      player -> setMedia (QUrl::fromLocalFile ("/your/video/path.mp4"));

      window -> show();
      player -> play ();
      return app.exec();
      }

      Attachments

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

        Activity

          People

            janichol Andy Nichols
            prest1ge prest1ge c0ding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes