Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTimeEdit exceed 23:59:59 limit
Forum Updated to NodeBB v4.3 + New Features

QTimeEdit exceed 23:59:59 limit

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtimeeditqdatetimeedit
4 Posts 3 Posters 729 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hobbyProgrammer
    wrote on last edited by
    #1

    Hi,
    I would like to set the duration of something that can take longer than 1 day.
    However, I do not desire to enter a date (like the DateTime has).

    Is there anyway to add days to the QTimeEdit or how to exceed the 23:59:59 limit?

    Thanks

    JonBJ 1 Reply Last reply
    0
    • H hobbyProgrammer

      Hi,
      I would like to set the duration of something that can take longer than 1 day.
      However, I do not desire to enter a date (like the DateTime has).

      Is there anyway to add days to the QTimeEdit or how to exceed the 23:59:59 limit?

      Thanks

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @hobbyProgrammer
      No, QTimeEdit is a time of day editor, not a time duration editor. You would need a different widget (of your own) for a duration editor.

      H 1 Reply Last reply
      3
      • JonBJ JonB

        @hobbyProgrammer
        No, QTimeEdit is a time of day editor, not a time duration editor. You would need a different widget (of your own) for a duration editor.

        H Offline
        H Offline
        hobbyProgrammer
        wrote on last edited by
        #3

        @JonB that's too bad, I would've loved just using the QTimeEdit, but thank you anyway for your reply

        Pl45m4P 1 Reply Last reply
        0
        • H hobbyProgrammer

          @JonB that's too bad, I would've loved just using the QTimeEdit, but thank you anyway for your reply

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @hobbyProgrammer

          You could build your own TimeWidget based on QTimeEdit which stores and shows more than 24h.


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          4

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved