Example1.10: src/qtstreams/qtstreamdemo.cpp