It sounds real easy, and as the Doc states it should work like this, but all I get is "unable to spawn"
Qt Code:
  1. void blah(const QString &basedir){
  2. QDir dir(_basedir);
  3. if (!dir.exists()){
  4. qDebug() << "Dir " << _basedir << " does NOT exists";
  5. if (dir.mkpath(_basedir)){
  6. qDebug() << "Spawned base dir " << _basedir;
  7. }
  8. else{
  9. qDebug() << "Unable to spawn base dir " << _basedir;
  10.  
  11. return;
  12. }
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 
Note: _basedir may be absolute or relative

may somone please point me to my mistake, I don't really see any.

I allready read the doc twice, but I don't see any hint about this..

thanks for any reply