See https://www.klayout.de/forum/discussion/1624/qtimer-misses-timeout-signal#latest for the discussion and for a workaround. Technically the reason is that Qt5 introduced "private signals" which are not captured correctly by KLayout's Qt binding.