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

Smart wrapping for QTimeEdit and QDateTimeEdit

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.9.2
    • None

    Description

      I'm having a QTimeEdit displaying hh:mm.

      This widget behavior is very annoying: When the value is 09:59, there is no easy way to move to 10:00. The spinbox controls on the right only applies to minutes or hours. When you put your cursor on minutes, incrementing is not allowed if value is 59.

      To move from 09:59 to 10:00 you need to decrement 59 to 00 and then increment 09 to 10...that's really annoying.

      There should be an option to make it possible to let user increment minutes by one using the spinbox control and then get value be changed from 09:59 to 10:00 with a single click??

       

      This should apply to QTimEdit:

      • Incrementing seconds from 59 should move to 00 and automatically increment minutes by 1
      • Incrementing minutes from 59 should move to 00 and automatically increment hours by 1

      This should also apply to QDateTimEdit:

      • Incrementing seconds from 59 should move to 00 and automatically increment minutes by 1
      • Incrementing minutes from 59 should move to 00 and automatically increment hours by 1
      • Incrementing hours from 23 should move to 00 and automatically increment days by 1
      • Incrementing days may also increment month
      • Incrementing month may also increment year

      Else, developer has to write code itself, like proposed here and here.

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            jpo38 Jean Porcherot
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes