Results 1 to 4 of 4

Thread: file operation

  1. #1
    Join Date
    Feb 2008
    Posts
    60
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default file operation

    Dear all,

    I am working Qt4.3.4 in Windows platform.

    Can any one tell me is it possible to restrict copy and paste of any file in windows using Qt ?

    Is this is a platform dependent solution?

    thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: file operation

    I suppose that you can do it in a platform specific way - simple change the ownership of the file to someone else or so... but using Qt - I dont know any such method.

  3. #3
    Join Date
    Feb 2008
    Posts
    60
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: file operation

    Is the QFile::setPermissions (QFile::ReadOwner) method help me for setting only the file owner will copy/read any file?

    Thanks in advance.

  4. #4
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: file operation

    Yes, it could be, but you might have to try it out on Windows. See the notes here: http://doc.trolltech.com/4.5/qfile.html#Permission-enum .

Similar Threads

  1. Read binary from file
    By weldpua2008 in forum Newbie
    Replies: 2
    Last Post: 4th April 2009, 00:50
  2. About File write operation
    By raghvendramisra in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2008, 12:41
  3. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  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. change of ownershiip operation not permaitted while build
    By quickNitin in forum Installation and Deployment
    Replies: 5
    Last Post: 16th May 2006, 13:13

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.