[Development] Lack of base classes/interfaces? Q*, Q*F

Thiago Macieira thiago.macieira at intel.com
Mon Apr 17 19:40:37 CEST 2017


Em segunda-feira, 17 de abril de 2017, às 10:33:06 PDT, Jason H escreveu:
> After some more thought, I think what I need are C++ templates. So let me
> rephrase: Why not QRect<int> and QRect<double>?

We should do that. See André P's email.

> Also I'm still not sure though why there isn't an interface for
> QVector/QList? The main things are operator [], at(), size(), etc.

If by "interface" you mean a base class without virtuals, see 

https://gitlab.com/thiagomacieira/qtbase/blob/master/src/corelib/tools/
qgenericarray.h

That's what this class was supposed to be.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list