Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator 4.12.4 - Strange issues when clock set back
Qt 6.12 LTS is out! See what's new in the release blog

Qt Creator 4.12.4 - Strange issues when clock set back

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 526 Views
  • 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.
  • N Offline
    N Offline
    Nubcake
    wrote on last edited by
    #1

    I'm using Qt creator 4.12.4 on Windows 10 to develop my application and to do some testing, I need to setback the system clock to be a month earlier or specifically 1st January 2021. Whenever I do this and try to debug in Qt creator I encounter some strange problems:

    The state of every source file becomes "cached" in that any change I make to the source files while the clock is setback doesn't seem to be acknowledged e.g making new changes and building the project always shows the "old code". I confirmed this by deleting the contents of a file and building it to find that it still runs even though code is missing (The compiler output shows it building and linking the empty file)

    Running qmake and rebuilding/cleaning the project doesn't do anything to remedy this while the clock is setback. The only thing that seems to work is deleting the entire contents of the build output folder but I don't want to have to do this everytime while the clock is setback. Why is this happening and is it a bug in Qt-Creator ?

    Thanks

    JonBJ 1 Reply Last reply
    0
    • N Nubcake

      I'm using Qt creator 4.12.4 on Windows 10 to develop my application and to do some testing, I need to setback the system clock to be a month earlier or specifically 1st January 2021. Whenever I do this and try to debug in Qt creator I encounter some strange problems:

      The state of every source file becomes "cached" in that any change I make to the source files while the clock is setback doesn't seem to be acknowledged e.g making new changes and building the project always shows the "old code". I confirmed this by deleting the contents of a file and building it to find that it still runs even though code is missing (The compiler output shows it building and linking the empty file)

      Running qmake and rebuilding/cleaning the project doesn't do anything to remedy this while the clock is setback. The only thing that seems to work is deleting the entire contents of the build output folder but I don't want to have to do this everytime while the clock is setback. Why is this happening and is it a bug in Qt-Creator ?

      Thanks

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

      @Nubcake
      It will be because some existing files are "newer" than those you now create "today". Makes, and checking debug builds against source code, are timestamp based. Not a Creator issue. Make sure you start off with all intermediate files deleted. But yes, if you keep setting the clock back you will encounter this sort of issue.

      1 Reply Last reply
      3

      • Login

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