Results 1 to 2 of 2

Thread: QTimeEdit / QDateEdit doubleclick behavior

  1. #1
    Join Date
    Nov 2008
    Thanked 1 Time in 1 Post

    Default QTimeEdit / QDateEdit doubleclick behavior


    When doubleclicking a section in QTimeEdit / QDateEdit, not only the section, but also the "." or ":" are selected. This is very annoying, because it is not possible to change the values by pressing the keys on the keyboard.

    For example:

    16:45:53 when I doubleclick inside the 16, the selection is "16:". I cannot change the value. When I hit the Tab key, not the next section is selected but the seconds selection.

    Other time edits like the WinXp time edit (when changing the system, time) behave correctly and select only the section.

    This looks like a bug (Qt 4.4.3), is this solved in Qt 4.5 or is there a workaround?


  2. #2
    Join Date
    May 2009
    Thanked 16 Times in 15 Posts
    Qt products
    Unix/X11 Windows

    Default Re: QTimeEdit / QDateEdit doubleclick behavior

    I just tested it on Qt 4.5 / Windows, it works fine, separators are not selected in QTimeEdit and QDateEdit when you double-click a number.

    It's probably a bug.

Similar Threads

  1. QDateTimeEdit (QTimeEdit, QDateEdit) invalid input
    By Kumosan in forum Qt Programming
    Replies: 10
    Last Post: 15th June 2012, 12:21


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.