Results 1 to 3 of 3

Thread: How to check a file for changes since last save

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to check a file for changes since last save

    The "proper" way to do it would be to use the undo functionality Qt offers and have two things done at the same time. The down side is that you'd have to implement commands for all things you do in your application.

    The "second proper" way would be to use QWidget's "windowModified" property. Of course you'd have to check the flag yourself everytime you change the document.

    If the object is not a widget, then you have to do it the way you suggested.

  2. The following user says thank you to wysota for this useful post:

    nmather (21st April 2007)

Similar Threads

  1. read file from end to beginning..
    By soul_rebel in forum Qt Programming
    Replies: 11
    Last Post: 4th June 2012, 01:20
  2. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10
  3. Reverse Order on QStringList slow...?
    By patrik08 in forum Qt Programming
    Replies: 24
    Last Post: 21st February 2007, 09:32
  4. Check for compressed .qm file?
    By ksierens in forum Qt Programming
    Replies: 2
    Last Post: 2nd November 2006, 19:52
  5. What does "Save All" actually save?
    By Mariane in forum Newbie
    Replies: 7
    Last Post: 31st January 2006, 13:23

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.