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

Wrong focus handling in QDateEdit when setSpecialValueText is u sed

    XMLWordPrintable

Details

    Description

      Platform: WindowsXP

      Modified a QDateEdit to use setSpecialValueText as an "empty" Date, e.g. *..***

      and arranged the QDateEdit in a layout where a QLineEdit is before and after the QDateEdit in the focus chain (see attached UI file)

      Expected to see:

      when date is "empty", means specialValueText is displayed, i can tab through the widgets as usual. however, this only works if a "correct" date is displayed in QDateEdit.

      Got instead:

      in case of displaying a special value text, the tab remains in the QDateEdit and the next widget can not be focussed.

      More details:

      Problem can be reproduced very easily. Just open the attached file in designer, preview the form and tab through the widgets. as long as there is a valid date, tabbing through the widgets with "TAB-Key" works as expected. As soon as there is a specialValueText in QLineEdit ("Empty"), tabbing stops in QLineEdit.

      Attachments

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

        Activity

          People

            monsen Marius Bugge Monsen
            ebaak Ed Baak (closed Nokia identity) (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