[Development] Is overriding an existing virtual method 'BC' in Qt 4?

Simon Hausmann simon.hausmann at digia.com
Thu Sep 27 09:32:16 CEST 2012


On Thursday, September 27, 2012 09:08:52 AM João Abecasis wrote:
> Thiago Macieira wrote:
> > But note that there's one stricter requirement: the forwards compatibility
> > that applies within a patch series. Adding this new virtual within the
> > same
> > patch series means a new, public symbol, which could get used in
> > applications.
> I don't know how to fix this, but is there a hard technical reason why
> the reimplementation of a virtual function needs to be *exported*?

Sub-classes of the class that newly re-implements the virtual method will 
refer to the symbol of the newly re-implemented virtual method once they're 
recompiled against the new headers. If the symbol isn't exported it won't link 
:)

Simon



More information about the Development mailing list