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

Change interval type in QTimer to qint64/QDeadlineTimer

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.0 Beta 2, 6.4.0 FF
    • Fix Version/s: None
    • Component/s: Core: Event loop
    • Labels:
      None
    • Epic Link:
    • Story Points:
      8
    • Commits:
      a25ba47c2b820117bdc60ba6bc772d6ea4093a4c
    • Sprint:
      Foundation PM Priority

      Description

      Now QTimer::start(int msec) accepts only int values which corresponds to ~ 24 days as maximum time interval. Please change interval type in QTimer to qint64 to allow more easily create schedulers with big time intervals - months, etc.

      QTimer::start(std::chrono::milliseconds msec) does not work for this as value converted to int inside it, which is wrong I think.

        Attachments

        For Gerrit Dashboard: QTBUG-67383
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            cnn Qt Core & Network
            Reporter:
            jirauser39314 user-45b5b (Inactive)
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes