Input/Output

Table of contents:

Input Output

  • Reading and Writing Binary Data
  • Reading and Writing Text
  • Handling Files and Directories
  • Inter-Process Communication

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 us to execute external programs asynchronously, keeping the GUI responsive, with signals to tell us how the execution is progressing.

Part I: Basic Qt

Getting Started

Creating Dialogs

Creating Main Windows

Implementing Application Functionality

Creating Custom Widgets

Part II: Intermediate Qt

Layout Management

Event Processing

2D and 3D Graphics

Drag and Drop

Input/Output

Container Classes

Databases

Networking

XML

Internationalization

Providing Online Help

Multithreading

Platform-Specific Features



C++ GUI Programming with Qt 3
C++ GUI Programming with Qt 3
ISBN: 0131240722
EAN: 2147483647
Year: 2006
Pages: 140

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net