Qt Reference Documentation

# Undo Framework

Files:

- demos/undo/commands.cpp
- demos/undo/commands.h
- demos/undo/document.cpp
- demos/undo/document.h
- demos/undo/mainwindow.cpp
- demos/undo/mainwindow.h
- demos/undo/mainwindow.ui
- demos/undo/main.cpp
- demos/undo/undo.pro
- demos/undo/undo.qrc

This demo shows Qt's undo framework in action.

Qt's undo framework is an implementation of the Command pattern, which provides advanced undo/redo functionality.

To show the abilities of the framework, we have implemented a small diagram application in which the diagram items are geometric primitives. You can edit the diagram in the following ways: add, move, change the color of, and delete the items.