Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. graphicview

    Log in to post
    • All categories
    • K

      Solved Media player not working for multiple videos
      General and Desktop • qt 5.5 videosurface media player graphicview • • Kinesis

      41
      0
      Votes
      41
      Posts
      3626
      Views

      jsulm

      @Kinesis No need to feel bad - I'm helping here voluntary :-)
      I don't think you need to upload your code. If somebody has questions he/she can ask.

    • Fidchells_Eye

      Solved GraphicsView crash with GraphicsVideoItem.
      General and Desktop • mediaplayer graphicview qgraphicsvideoi form • • Fidchells_Eye

      3
      0
      Votes
      3
      Posts
      1107
      Views

      Fidchells_Eye

      Hey Joel

      Thanks the code lines:
      QGraphicsScene* scene = new QGraphicsScene(this);
      ui->GVpreview->setScene(scene);

      fixed the issue as I don't know how to do the scene view bit in the form editor.

    • vinay133

      how to sync zoom in two graphicviews with a single mouse wheelevent.
      General and Desktop • zoom graphicview qframe • • vinay133

      2
      0
      Votes
      2
      Posts
      981
      Views

      mrjj

      Hi and welcome
      Many ways to do this, but here is my suggestion.

      Add a signal to your graphicview class

      signals: void MWheelActivated(bool ZoomIn);

      and hook it up to a slot in your mainwindow with the connect function.
      http://doc.qt.io/qt-5.5/signalsandslots.html

      then in GraphicsView::wheelEvent(QWheelEvent *e)
      you
      emit MWheelActivated ( (e->delta() > 0));
      and No zooming here!

      Then in mainwindow slot

      mainwindow:: MWheelActivated ( bool ZoomIn ) { if ( ZoomIn ) { view1->zoomIn ( 6 ); view2->zoomIn ( 6 ); } else { view1->zoomOut ( 6 ); view2->zoomOut ( 6 ); } }

      Hope it helps.