[Qt-interest] anyone know why QDir::mkpath() isn't static?

Paul Miller paul at fxtech.com
Tue Apr 12 19:46:00 CEST 2011


On 4/12/2011 12:41 PM, Bill Crocker wrote:
>>
>> Yeah I think this is a good case for a separate static method (similar
>> to remove, rename, and exists found in QFile) that takes an absolute
>> path (which is the only way I've ever used it).
>>
>
> Then you are probably taking a performance hit.
>
> I would vote against anything which trades away
> performance for small increases in convenience.
> Too much of QtCore already suffers from this.
>
> Qt should provide the convenience layer,
> but it also has to provide the fast lane.

I don't see how this has anything to do with performance, but I was 
advocating adding a separate, static function; not advocating removing 
the existing functionality.



More information about the Qt-interest-old mailing list