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

Writing dynamic plugins

Static plugins provide a convenient way to distribute your applications. However, this always requires a rebuild of the main program. By contrast, dynamic plugins are much more flexible since they're linked dynamically. This means the main project, which is painter_demo in this example, doesn't need to be built with dynamic plugins nor is it required to release its source code. Instead, it only needs to provide an interface and the header file of that interface, and then scan those dynamic plugins at runtime so that they can be loaded.

Note

Dynamic plugins are commonly seen in complex applications, especially in commercial software such as Adobe Illustrator.

Similar to the static plugin we just wrote, we need to create a new ...

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