[Development] Suggested addition to wiki.qt.io/Coding_Conventions

Marc Mutz marc.mutz at kdab.com
Sat May 16 22:01:36 CEST 2015

On Wednesday 13 May 2015 09:30:05 Thiago Macieira wrote:
> The drawbacks only appear in debug builds, so is this worth the
> uglification?

Yet another example of things that go wrong when blindly exporting
classes wholesale:
(from https://codereview.qt-project.org/112431).

Mind you, the Coding Conventions already forbid to inherit from
template classes. It's just that it wasn't fixed for Qt 5.

But the root problem isn't inheriting from templates, it's exporting
the whole subclass.

Convinced now?


Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts

More information about the Development mailing list