Results 1 to 7 of 7

Thread: How to create a directory with hidden attribute

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    2

    Default Re: How to create a directory with hidden attribute

    Thanks a lot for this information.

    I was thinking that there must be some way to do that using Qt ( without using platform dependant code ).

    How about the Mac OS X?

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: How to create a directory with hidden attribute

    Quote Originally Posted by sanjayshelke View Post
    THow about the Mac OS X?
    Its also UNIX based so ideally "dot before name" method should work.

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

    Default Re: How to create a directory with hidden attribute

    Quote Originally Posted by sanjayshelke View Post
    I was thinking that there must be some way to do that using Qt ( without using platform dependant code ).
    Qt has "setPermissions" but these don't include hidden attribute as only Windows has that function. Therefore you need to create a directory with a name starting with a '.' and then if on Windows you need to use windows-specific code to make that directory hidden. Some platforms may not support directories starting with a '.' (some smartphones).

    There is no platform independant way of doing this.

  4. #4
    Join Date
    Jul 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    2

    Default Re: How to create a directory with hidden attribute

    Thanks a lot.

    Yes finally i implemented the platform specific code for windows and Mac os x.

    Mac OS X is unix based so putting '.' in front of the file makes the file hidden.


    Thanks again.

  5. #5
    Join Date
    May 2011
    Posts
    132
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    14

    Default Re: How to create a directory with hidden attribute

    Can you share ?

Similar Threads

  1. some questions about install qwt
    By dycjiaoda in forum Qwt
    Replies: 1
    Last Post: 8th February 2011, 02:37
  2. install help nedded.
    By aj2903 in forum Installation and Deployment
    Replies: 9
    Last Post: 13th November 2008, 08:57
  3. Replies: 2
    Last Post: 27th October 2007, 19:16
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 11:04

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.