Results 1 to 7 of 7

Thread: QFile::remove() strange refresh problem in windows desktop

Hybrid View

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

    Default Re: QFile::remove() strange refresh problem in windows desktop

    TBH, since you can register file/dir notifications with the shell, I kinda expected the shell to use that itself so that when someone modifies a folder, regardless of where it is, it refreshes the open windows that are showing that directory.

    Every app can see special directories like "Desktop", but I don't think any of the applications I have treat it any differently than any other dir.

  2. #2
    Join Date
    Sep 2010
    Posts
    145
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFile::remove() strange refresh problem in windows desktop

    You mean you can register your app to receive file notifications from the shell, right? The context of "someone" is very important. If "someone" is the typical user, then they used the shell to make the modifications so the shell already knows about it. If "someone" is a program written with the standard library for file IO, then the shell will know when it is asked to check. If "someone" is a program written against the shell api, then the shell will know just as if the user himself had done it.
    but I don't think any of the applications I have treat it any differently than any other dir.
    It comes down to whether or not it is suitable for the shell to wait until it is asked by the user (or another process) to refresh the desktop. Also it is worth mentioning that for most purposes the shell api is overkill for file operations.

Similar Threads

  1. Replies: 7
    Last Post: 13th February 2014, 06:23
  2. Accessing GPS device from qt desktop(windows) App
    By newtolinux in forum Qt Programming
    Replies: 7
    Last Post: 2nd November 2010, 20:05
  3. Replies: 2
    Last Post: 6th September 2010, 14:22
  4. Associate Program Icon for Windows Desktop
    By brent99 in forum Newbie
    Replies: 2
    Last Post: 11th March 2008, 04:22
  5. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47

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.