From 1b6c83f7a3668e39df9d5e468fa693b0aa0c8b0e Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 26 Jun 2012 16:11:06 +0200 Subject: Document that the object of a plugin must be default-constructible. Change-Id: Iaaf56ec3bb0d2423c8ab5deb0627dc1357cee830 Reviewed-by: Lars Knoll --- dist/changes-5.0.0 | 3 +++ src/corelib/plugin/qplugin.qdoc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index 76cdd0abcb..b9fc03066e 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -649,6 +649,9 @@ Qt for Windows CE * Plugins * **************************************************************************** - The text codecs that were previously plugins are now built into QtCore. +- Code using Q_EXPORT_PLUGIN macros will no longer compile. Use + Q_PLUGIN_METADATA instead. Note that this requires that the class + be default-constructible. **************************************************************************** * Important Behavior Changes * diff --git a/src/corelib/plugin/qplugin.qdoc b/src/corelib/plugin/qplugin.qdoc index f671a5f1a4..940813f8b6 100644 --- a/src/corelib/plugin/qplugin.qdoc +++ b/src/corelib/plugin/qplugin.qdoc @@ -77,6 +77,8 @@ See the \l{tools/plugandpaint}{Plug & Paint} example for details. + Note that the class this macro appears on must be default-constructible + \sa Q_DECLARE_INTERFACE(), {How to Create Qt Plugins} */ -- cgit v1.2.3