thanks
loadReturn=false. So it can translate.Qt Code:
bool loadReturn=translator.load(locale);To copy to clipboard, switch view to plain text mode
Why is loadReturn =flase not true???
mycomputer can't run above commands.
thanks
loadReturn=false. So it can translate.Qt Code:
bool loadReturn=translator.load(locale);To copy to clipboard, switch view to plain text mode
Why is loadReturn =flase not true???
mycomputer can't run above commands.
Last edited by nthung; 15th October 2011 at 03:07.
That code doesn't appear in the hellotr example. Anyway, upon reading the friendly manual (QTranslator::load()) I discover that:
What is the value of the variable locale? Does it correspond to a *.qm file?Loads filename + suffix (".qm" if the suffix is not specified), which may be an absolute file name or relative to directory. Returns true if the translation is successfully loaded; otherwise returns false.
Last edited by ChrisW67; 15th October 2011 at 03:51.
nthung (15th October 2011)
Bookmarks