Results 1 to 3 of 3

Thread: Qt4 + C++ + MacOs + Path

  1. #1
    Join Date
    Feb 2009
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Qt4 + C++ + MacOs + Path

    Hi guy ... i have a questions:

    why when i use qt and write this istruction of system call

    lstat("./name_Dir",&buf) or lstat("./Name_file", &buf) or mkdir("./name_dir")

    don't work ...

    whereas if i use


    lstat("/User/nameuser/desktop/name_dir",&buf) or mkdir("/User/nameuser/desktop/name_dir")

    work... !!!???!!!???

    I don't need the absolute path, and as if it didn't read "./" or "../" please help me
    Last edited by zeeb100; 5th February 2009 at 18:43.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 + C++ + MacOs + Path

    "./" means current directory and it seems that the current directory differs from what you expect it to be. See QCoreApplication::applicationDirPath().

  3. #3
    Join Date
    Feb 2009
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Qt4 + C++ + MacOs + Path

    thanks for help

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.