Home > Mobile >  Why buttons doesn't fit to translation?
Why buttons doesn't fit to translation?

Time:10-18

I've a size problem with translated text. If I use a translation the text not fits with the size.

Example

Original text:

[Save icon] Save

Translated text (german):

[Save icon] Speichern

Is there any option to resize the buttons for a translation?

CodePudding user response:

Simply use adjustSize(); after the ui setup.

CodePudding user response:

QPushButton tries to size to its text by default, but your window is probably not wide enough. Consider reduzing fontSize or increase your application window's width.

  • Related