On 05/22/2014 09:58 AM, Tony Rietwyk wrote:
> Hi Etienne,
>
> The 4.8.5 doco for QObject.qobject_cast links to the "Plug & Paint"
> example for use of qobject_cast with interfaces. Mind you, it
> incorrectly shows the return type as QWidget. Hopefully that doco has
> been rewritten in v5!
Hopin
Thanks for your explanations!
Let's start working on the plugin system...
Etienne
2014-05-22 10:01 GMT+02:00 Roland Winklmeier
:
> Hi Etienne,
>
> there are two requirements:
>
> 1. The interface must be pure virtual (so it cannot derive from QObject)
> 2. qobject_cast requires a QObject subc
Hi Etienne,
there are two requirements:
1. The interface must be pure virtual (so it cannot derive from QObject)
2. qobject_cast requires a QObject subclass
Hence, your plugin implementation must inherit from both. The
implementation itself can derive from QObject but the interface cannot.
The m
Hi Etienne,
The 4.8.5 doco for QObject.qobject_cast links to the "Plug & Paint" example for
use of qobject_cast with interfaces. Mind you, it incorrectly shows the
return type as QWidget. Hopefully that doco has been rewritten in v5!
Hope that helps,
Tony
From: interest-b
2014-05-22 9:37 GMT+02:00 Etienne Sandré-Chardonnal :
> Dear all,
>
> I'm reading the doc in order to implement plugins into my Qt 4.8
> application.
>
> The manual says that I need first to define the plugin interface as a pure
> virtual class. In the example it does not inherit QObject.
>
> Then