[Interest] QEvent::FileOpen : opening single vs. multiple documents
René J.V. Bertin
rjvbertin at gmail.com
Sat Jan 27 19:34:24 CET 2018
Hi,
Judging from the behaviour of native Mac applications like Preview.app there must be a distinction in the LaunchServices messages being sent when the user requests the opening of a single document vs. a collection of documents. Preview.app for instance will open a new window for each request, containing all the documents of that request in individual tabs.
Qt doesn't seem to allow that but sends QFileOpenEvents for each individual document. In my experience one can typically do a QCoreApplication::processEvents() immediately after installing the event filter to catch all documents "with which" the application was launched. Has anyone found a simple way to regroup subsequent QFileOpenEvents?
Thanks,
R.
More information about the Interest
mailing list