O'Reilly logo

Qt 5 Blueprints by Symeon Huang

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 5. Extending Paint Applications with Plugins

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:

  • Drawing via QPainter
  • Writing static plugins
  • Writing dynamic plugins
  • Merging plugin and main program projects
  • Creating a C++ plugins for QML applications

Drawing via QPainter

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 ...

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