Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2685

QDoubleSpinbox behaviour with C-locale and large values.

    XMLWordPrintable

Details

    Description

      With the LANG environmental variable set to LANG=de_DE.utf8
      Using the following example code. If the value is set to 10000.00, the DoubleSpinbox displays this value as 10,00000

      example code:
      #include <QApplication>
      #include <QDoubleSpinBox>

      int main(int argc, char** argv)
      {
      QApplication app(argc,argv);
      QDoubleSpinBox spin;
      spin.setMaximum(99999);
      spin.setLocale(QLocale::c());
      spin.show();

      return app.exec();
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes