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

QDateTimeEdit behaviour differs from QAbstractSpinBox behaviour

    XMLWordPrintable

Details

    • 36a294d1aa18ba67989d505eadf4b9c2012c0c9e (qt/qtbase/5.12)

    Description

      If you compare the source code from qabstractspinbox.cpp and qdatetimeedit.cpp:

      inside void keyPressEvent(QKeyEvent *event)

      qabstractspinbox will emit a returnPressed signal for the contained QLineEdit:

      {{ emit d->edit->returnPressed();}}

      but qdatetimeedit.cpp won't. This creates an unnecessary discrepancy in behaviour, causing problems for me, since I would like to catch the Return/Enter keypress without using an event filter. Please fix.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            janezzabc Janez Žemva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes