you could wait until the file is writable with that:
QFileInfo::isWritable ()
To copy to clipboard, switch view to plain text mode
but beware, if its write protected it will end in an infinite loop.
or you do that for waiting some seconds:
public slots:
void fileProcessing(QString&);
void MyApp
::fileProcessing(QString & filePath
) {
//Do sth with the file
}
void MyApp
::fileModified(QString & filePath
) {
QTimer::singleShot(5000,
this,
SLOT(fileProcessing
(filePath
)));
}
public slots:
void fileProcessing(QString&);
void MyApp::fileProcessing(QString & filePath)
{
//Do sth with the file
}
void MyApp::fileModified(QString & filePath)
{
QTimer::singleShot(5000, this, SLOT(fileProcessing(filePath)));
}
To copy to clipboard, switch view to plain text mode
Bookmarks