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

QDateTimeEdit behaviour differs from QAbstractSpinBox behaviour

    XMLWordPrintable

    Details

    • Commits:
      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

        For Gerrit Dashboard: QTBUG-73725
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              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