[Development] QList

Philippe philwave at gmail.com
Sun Mar 26 08:30:46 CEST 2017


> Il 25/03/2017 23:23, Philippe ha scritto:
> > Indeed, as a user of QPolygon, I do see and handle a QPolygon as a
> > vector of points...
> 
> None of these properties strictly depend on the fact that a QPolygon
> _is-a_ QVector.
> 

For sure, but where is the problem of having QPolygon publicly
inheriting from a QVector, since the API of QVector is reusable and useful
at times, as mentionned? Why changing something that works well and that
is conceptually far from shocking?

Not to mention the code breaks a change would cause, here.

Philippe




More information about the Development mailing list