Hi All,
Is possible translate the text written inside buttons, Checkbox etc... inside the QPrintDialog.
It is possivel send me a simple example?
Thanks in advance.
Printable View
Hi All,
Is possible translate the text written inside buttons, Checkbox etc... inside the QPrintDialog.
It is possivel send me a simple example?
Thanks in advance.
i think u can use findChild()
following code will add a new item to the combo box in the dialog. Like this u can access the button also.
Code:
pComboBox = printDlg.findChild<QComboBox *>(); if( 0 != pComboBox ) { pComboBox->addItem( NewItem ); }
Hi febil,
Thanks for you help, I'll use your example to do what I need.
Thanks
If you install a proper translator object with a message catalogue containing translations for the dialog, it should be used automatically. The default message catalogue for Qt proabably already contains those messages so it's enough to translate them for your language or install an already existing translation set in case there is one for your language.