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.
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.
Qt Code:
pComboBox = printDlg.findChild<QComboBox *>(); if( 0 != pComboBox ) { pComboBox->addItem( NewItem ); }To copy to clipboard, switch view to plain text mode
Last edited by wysota; 12th May 2009 at 19:55. Reason: missing [code] tags
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.
Bookmarks