Why does QDialogButtonBox labels' language change between design and execution?

319 Views Asked by At

I use a french version of QtCreator v4.11.1 When I create a default QDialogButtonBox using the form designer (or using Qt Designer), the buttons are labelled in french language. Both buttons have 'OK' and 'Annuler' labels as seen below.

enter image description here

However, when I execute the application, the labels are changed into english language and are labelled 'OK' and 'Cancel' as show below.

enter image description here

I tried to search but could not find ways to keep the labels as they are designed (which means in french). Even after setting the QLocale explicitly with code, the labels are always in English when the application is executed.

Is it an issue with QT or am I missing some steps? How can I keep the labels in french language when compiled?

0

There are 0 best solutions below