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

Bill Crocker william.crocker at analog.com
Tue Apr 12 19:41:15 CEST 2011


re: The mkdir discussion:

> 
> 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.

Bill



More information about the Qt-interest-old mailing list