Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTranslator fallback used
JeromeGodbout last edited by
Hi, is anybody known how to get the QTranslator file used when performing a load that can use fallback (like "_." for search_delimiters). I would like to use a QFileSystemWatcher to attach to the current used resource and reload the QTranslator.
It work if I used a direct match for the resource name and extension, but if the QTranslator use a file that is a fallback on load, I cannot know which one was selected.
Maybe a QFileSystemWatcher should be built-in QTranslator, or the filename used could be returned by the load function (extra parameter by reference). Or maybe expose the file selection algo, so we could re-run (not great but at least better then nothing) the file find.
What do you think?
I opened a suggestion https://bugreports.qt-project.org/browse/QTBUG-36608