Results 1 to 5 of 5

Thread: Highlighting selected section on QDateTimeEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Highlighting selected section on QDateTimeEdit

    I'm sorry to bring that thread up, but I actually have the same problem right now.
    Meanwhile, it seems that a couple of functions were added to Qt, of which setSelectedSection,
    but no matter what I do, the cursor always stays on the first section until the user interacts with the GUI.
    Did anybody get the same behavior here ?

  2. #2
    Join Date
    May 2013
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Highlighting selected section on QDateTimeEdit

    Unless its been fixed in a recent release (probably not but I havent tried - cant afford the disk space for more than 2 parallel versions of qt)...

    Then, what you describe should probably be classified as a long time bug in Qt, that is, an inconsistency between the direct keyboard editing and software only control.

    I usually steer well clear from GUIs and Commodity software...

    Anyway so that you know, none of the previous suggestions will give you the correct behaviour and
    the solution is not going to be as obvious as anyone has previously attempted to point out.
    You are going to have to do what I did and get well acquainted with debugging the Qt Libraries.
    In the end I made a very small fix/workaround in the Qt Libraries to get this to work.

    Since I think Commodity/Free software and lack of regulation hurts the working Software Professional I will not post my version of the fix/workaround in the public domain. I will
    leave that to some other person that believes doing work for free somehow greatly
    improves their fiscal and career prospects in the "commodity software employers" buyers
    market.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.