Results 1 to 3 of 3

Thread: Creating hidden file in Qt on Windows

  1. #1
    Join Date
    Feb 2010
    Posts
    68
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Creating hidden file in Qt on Windows

    I'd like to create a hidden file, or create a file and then set it as hidden. Is it possible with Qt or will I need some other libraries? I read QFile, QDir and QFileInfo documentation and - at the first sight - didn't find anything interesting.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Creating hidden file in Qt on Windows

    By default, Linux will hide files and dirs that start with a period '.' unless you request them to be listed.

    On Windows, try SetFileAttributes(fileName, FILE_ATTRIBUTE_HIDDEN);

    Do note however that both OS's only hide by default. Showing hidden files is a simple menu option.

  3. #3
    Join Date
    Feb 2010
    Posts
    68
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: Creating hidden file in Qt on Windows

    Thank you for your response, it was very helpful.

Similar Threads

  1. Creating popup windows pyqt4
    By jaybstory in forum Newbie
    Replies: 1
    Last Post: 9th April 2011, 22:15
  2. ToolBar icons hidden in windows
    By giusepped in forum Installation and Deployment
    Replies: 3
    Last Post: 13th January 2009, 16:56
  3. Creating a dll file under windows
    By schall_l in forum Qt Programming
    Replies: 3
    Last Post: 28th March 2008, 12:55
  4. Replies: 2
    Last Post: 27th October 2007, 19:16
  5. Replies: 3
    Last Post: 25th May 2007, 08:49

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
  •  
Qt is a trademark of The Qt Company.