Qt-Generic-MissingTrCall

Use QObject::tr() in QWidget constructors

Required inputs: IR

QObject::tr() should be used to wrap QString arguments to QWidget constructors.

Possible Messages

Key

Text

Severity

Disabled

missing_tr_call

String literal must be wrapped in a call to QObject::tr().

None

False

Options

functions_expecting_translated_strings

functions_expecting_translated_strings : set[str] = {'QMessageBox::critical', 'QMessageBox::information', 'QMessageBox::question', 'QMessageBox::warning'}

Function calls with names in this set will also be checked.
 

ignored_string_literals

ignored_string_literals : set[str] = {''}

String literals matching this set will not be checked.