O'Reilly logo

C++ GUI Programming with Qt 3 by Mark Summerfield, Jasmin Blanchette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Input/Output

This chapter covers reading and writing files, traversing the file system, and interacting with external programs.

Qt’s QDataStream and QTextStream classes make it simple to read and write files. These classes take care of issues such as byte ordering and text encodings, ensuring that Qt applications running on different platforms can read and write each other’s files.

Many applications need to traverse directories or get information about a file. Qt’s QDir and QFileInfo classes makes this possible.

In some situations, it is necessary to run external programs from within a GUI program. Qt’s QProcess class allows ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required