Results 1 to 3 of 3

Thread: QDir fails in Vista

  1. #1
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QDir fails in Vista

    Hello everyone,

    I built a program that needs to access and modify the program filesystem tree.
    Now in order to achieve that I use QDir::mkdir().
    Well in Windows Xp directories are made as expected, they aren't in Windows Vista instead!
    No filesystem operation is allowed there! It behaves like a permission issue...

    Do someone knows why that happens and (hopefully) how to work it around?
    Thank you in advance
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QDir fails in Vista

    hmm run your program as an administrator. Where are you creating this directory?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QDir fails in Vista

    Quote Originally Posted by faldżip View Post
    hmm run your program as an administrator. Where are you creating this directory?
    Directory is "Users/<username>/Documents/programfolder/" where the program resides.
    Running as administrator works, but is quite annoying... is there a way to avoid it?
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

Similar Threads

  1. QProcess::startDetached and UAC on Vista
    By serious_jack in forum Qt Programming
    Replies: 2
    Last Post: 24th November 2011, 06:13
  2. Application crash in Vista
    By yj... in forum Installation and Deployment
    Replies: 1
    Last Post: 5th June 2009, 08:18
  3. Qt application with vista style
    By ahmad_elhoni in forum Qt Tools
    Replies: 4
    Last Post: 31st October 2008, 14:12
  4. QProcess and Vista UAC
    By sharevari in forum Qt Programming
    Replies: 6
    Last Post: 16th April 2007, 15:28
  5. How to explicitely delete a QDir?
    By alan in forum Newbie
    Replies: 2
    Last Post: 13th February 2006, 17:48

Tags for this Thread

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.