Skip to content

Commit

Permalink
better description file
Browse files Browse the repository at this point in the history
  • Loading branch information
garybradski authored Jun 30, 2017
1 parent 1d798e6 commit a533357
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions example_09-05.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
#include <QApplication>
#include <QLabel>
#include <QMoviePlayer.hpp>
#include <iostream>

using namespace std;

int main( int argc, char* argv[] ) {
cout << "\nExample 9-5. An example program ch4_qt.cpp, which takes a single argument"
<< "\nindicating a video file; that video file will be replayed inside of a Qt object"
<< "\nthat we will define, called QMoviePlayer"
<< "\nCall:\n" << argv[0] << " <path/movie>"
<< "\nExample:\n" << argv[0] << " ../tree.avi\n" << endl;
if(argc != 2)
return -1;

QApplication app( argc, argv );
QMoviePlayer mp;
mp.open( argv[1] );
Expand Down

0 comments on commit a533357

Please sign in to comment.