Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7
-
None
Description
Greetings,
QProgressBar, and therefore QProgressDialog do not offer a localisable label value by default.
Context:
In KDE applications, for the last two years or so, I’ve been crunching through the used QProgressBar’s with percent value labels, and making them localisable, so that the percent values can be modified accordingly to the user’s locale.
When using Qt Designer to build UIs, the percent value (%p%) appears localisable on the right pane, but it has to be modified and saved again in order to be picked up by the localisation framework. While adding it in code, setFormat has to be called explicitly to set the %p% available for localisation. This is not ideal, since not every developer may think of this.
For QProgressDialog the issue is a bit more complex, since I believe the underlying QProgressBar has to be overridden in code to call setFormat. To be fair, QProgressDialog is used in many more places, and it is really tedious to find them all and fix. Not to mention there are still a lot of QProgressBar’s to tackle aside from these.
It would be really nice, if for QProgressDialog and QProgressBar respectively, the %p% label value would be offered by default, so that neither developers, nor i18n folks have to chase these while they are continuously being added to new code. Offering this label to i18n by default will help Qt, and therefore related software look more and more professional via abiding every locale’s settings.
I am not an expert in Qt things, so feel free to correct me, and offer guidance.