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

Unable to change year with keyboard on QCalendarWidget with QDateTimeEdit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12.11
    • None
    • iOS/tvOS/watchOS

      #include <QApplication>
      #include <QCalendarWidget>
      #include <QDateTimeEdit>
      
      int main(int argc, char* argv[])
      {
          QApplication app(argc, argv);
          QDateTimeEdit editor;    
          editor.setCalendarPopup(true);  
        
          QCalendarWidget calendar;
          calendar.setSelectionMode(QCalendarWidget::SingleSelection);
          calendar.setNavigationBarVisible(true);
          calendar.setFirstDayOfWeek(Qt::Monday);
          calendar.setGridVisible(true);  
        
          editor.setCalendarWidget(&calendar);    
          editor.show();
          
          return app.exec();
      }
      
      

      If you have a QDateTimeEdit with an associated QCalendarWidget and select the down arrow to bring up the calendar, you can erase the year with the keyboard (on the calendar widget) but typing digits has no effect

      Reproducible on both the simulator with an actual keyboard and on an iPad (7th gen) with the on-screen keyboard. Works OK on Ubuntu.

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            martinburchell Martin Burchell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes