[Interest] QFileSystemWatcher
sarah jones
qtsarah at outlook.com
Tue Apr 1 11:47:05 CEST 2014
Hi
I have encapsulated a QFileSystemWatcher object into a class to detect
when a file of a given format appears in a given folder and emits a
signal when this is the case.
In another class I catch this signal and attempt to add it to a text edit widget in my ui.
In my processing slot I have –
void MirfFolderMonitorTestHarness::onNewMirfFile(const QString newMirfFile){ qDebug() << "TH " << newMirfFile; ui.m_newMirfFilesTextEdit->append(newMirfFile); qDebug() << "done TH " << newMirfFile;}
My problem is that although I always see the the 2 qDebug statements
when a new file appears the ui is not updated at the same time.
Can anyone suggest why this might be the case and how I can get the ui to update in a timely manner
Any help would be gratefully received
Thanks
Sarah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140401/3ac577ba/attachment.html>
More information about the Interest
mailing list