Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.1
-
None
-
Arch Linux
Description
Qt Widgets should allow inputting different numeral systems irrespective of the application locale. For example, in this simple application:
#include <QApplication> #include <QLocale> #include <QWidget> #include <QSpinBox> int main(int argc, char* argv[]) { QApplication app (argc, argv); QLocale::setDefault(QLocale(QLocale::Arabic, QLocale::Sudan)); QSpinBox *arBox = new QSpinBox; QLocale::setDefault(QLocale(QLocale::English)); QSpinBox *enBox = new QSpinBox; arBox->show(); enBox->show(); return app.exec(); }
arBox works correctly and allow me to input Eastern Arabic numerals as well as Arabic Numerals. However, enBox only allow input in Arabic Numerals.
Many users would prefer to keep their locale and interface language in English e.g. but be able to input text in their language, Arabic in my case. Unicode assign Numeric_Type and Numeric_Value properties to character that represent numbers and they should be treated as such.
Though my example tested QSpinBox, the problem exist in other widgets like QDateEdit and QTimeEdit.