Chapter 4. Implementing Application Functionality

In the previous two chapters, we explained how to create the Spreadsheet application’s user interface. In this chapter, we will complete the program by coding its underlying functionality. Among other things, we will see how to load and save files, how to store data in memory, how to implement clipboard operations, and how to add support for spreadsheet formulas to QTable.

The Central Widget

The central area of a QMainWindow can be occupied by any kind of widget. Here’s an overview of the possibilities:

  1. Use a standard Qt widget.

    A standard widget like QTable or QTextEdit ...

Get C++ GUI Programming with Qt 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.