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

Q3DateTimeEdit with setAutoAdvance(true) asserts if locale is not with AM/PM

    XMLWordPrintable

Details

    Description

      If setAutoAdvance(true) is set on a Q3DateTimeEdit on a system that is using a locale that is not showing time with AM / PM.

      When the seconds is changed and AutoAdvance it set it will try to move focus to the next section. But since the locale is not showing the AM/PM section, it will assert.

      Example Code:

      #include <QtGui>
      #include <Q3DateTimeEdit.h>
      int main(int argv, char *args[])
      {
      QApplication app(argv, args);
      QWidget win;
      Q3DateTimeEdit *dt = new Q3DateTimeEdit(&win);
      dt->setAutoAdvance(true);
      win.show();
      return app.exec();
      }

      Attachments

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

        Activity

          People

            hanssen Andreas Aardal Hanssen (closed Nokia identity) (Inactive)
            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