[Qt-interest] anyone know why QDir::mkpath() isn't static?
Paul Miller
paul at fxtech.com
Tue Apr 12 17:55:46 CEST 2011
To use QDir::mkpath() you have to do this:
QDir dir("/the/path/you/want/to/create");
dir.mkpath(dir.absolutePath());
Seems the argument to mkpath() is redundant, or, since the argument
overrides the QDir's actual path, the whole constructor is irrelevant.
Shouldn't it mkpath() be static?
I point out this because most of the rest of Qt seems to be designed
pretty well, but each time I need to use mkpath() the inconsistency of
it leaps out and gouges my eyes out.
More information about the Qt-interest-old
mailing list