Plugins enable you to make your application extendable and friendly for other developers. Therefore, in this chapter, we'll guide you in how to write plugins for Qt applications. A paint application demonstrates the recipe for Qt/C++. A simple demonstration shows you how to write a C++ plugin for QML. The topics we will cover in this chapter are listed as follows:
Before we get started, let me introduce the
QPainter class to you. This class performs low-level painting on widgets and other paint devices. In fact, everything drawn ...