[Qt-interest] Some QDir questions
Miroslav Kropacek
miroslav.kropacek at vatari.com
Tue Jan 20 16:52:41 CET 2009
Hi everybody,
I finally joined the list :) I'm very satisfied user of your Qt library,
amazing thing. And amazing to the power of two considering March 2009 LGPL
release.
I'd like to ask some things about QDir class:
- why there isn't something like QTemporaryDir child? It would be really
nice, I even found one discussion in this list concerning the same problem
with no solution (Windows even has no such function -- to create unique
directory name in some specified path)
- why is creation of directory such strange? I mean, I have QString with
some path and I want to make directory on disk. The best I'm able to code is
something like this:
QDir dir( "path" );
dir.mkdir( dir.path() ); // or mkpath() if needed
wouldn't be much nicer to have some static method, i.e. QDir::create( const
QString& ) ? Or, at least, to have mkdir(void) ? I see no point why I have
type so much...
- why QDir::exists( const QString& ) isn't static as in QFile class?
I hope my questions aren't too lame :) Thanks for any reaction in advance.
--
Miroslav Kropacek
Bluemont Software International a.s.
Gen. M.R. Stefanika 6670
911 11 Trencin
Slovakia
mobile: +421 908 458 922
e-mail: miroslav.kropacek at vatari.com
website: http://www.vatari.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090120/acbf469f/attachment.html
More information about the Qt-interest-old
mailing list