[Interest] QFileSystemWatcher malfunctioning

Sujan Dasmahapatra sdh at lmwindpower.com
Thu Jan 12 08:01:17 CET 2012


Dear Friends

I am using QFileSystemWatcher for knowing when the file is modified from
outside my application. I am seeing even if the file is modified from
the application this is giving message that the file is modified. Can
anyone tell whats going wrong in this..see the snippet below

 

[code]

QFile file("/home/sdh/projects/opt.cfg");

watcher = new QFileSystemWatcher(this);

connect(watcher,SIGNAL(fileChanged(const QString &)),this,
SLOT(cfgFileModified(const QString &)));

watcher->addPath(file.fileName());

[\code]

 

Please tell me whats going wrong. I am modifying the file from my
application then also its giving message. Thanks for any help. Thanks
Sujan

 

Kind regards,

 

 

Sujan Dasmahapatra
Project Leader, Aero Group
CE - Aero Group

Tel    +91 80 66470248
Mob  

sdh at lmwindpower.com <mailto:%25EMAIL%25> 

 

LM Wind Power Blades

lmwindpower.com

 

Together we capture the wind to power a cleaner world

________________________________

 

This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose,
or store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120112/85672e9b/attachment.html>


More information about the Interest mailing list