I have a dialog created using Qt Designer.
How can I make Qt Designer output something more dynamic than the hardcoded "Survex Errors"
I18n key in the following code it generates? (scroll to the right to see it)
For instance make it get the value of a dynamic property, or call a pure virtual function to get the key?
class Ui_cwImportTreeDataDialog
{
public:
void setupUi(QDialog *cwImportTreeDataDialog)
{
...
}
...
void retranslateUi(QDialog *cwImportTreeDataDialog)
{
...
tabWidget->setTabText(tabWidget->indexOf(SurvexErrorsWidget), QApplication::translate("cwImportTreeDataDialog", "Survex Errors", 0));
...
}
}
I want to be able to control which I18n key is used from my class that extends Ui_cwImportTreeDataDialog
.