Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. A deterministic end result when timer is stop
QtWS25 Last Chance

A deterministic end result when timer is stop

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 583 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    i have a LED blinking red and black toggling between the two color.
    When timer stop, the LED appears to be sometimes black, sometimes red.

    I resort to cast the LED red again after timer stop, but the results is still the same.
    I thought this is because time taken to stop the timer is longer compared to the time taken to execute next instruction subsequently, thus a delay is needed

    Now sloution is using qWait and qSleep and if there is other solution.

    QTest::qSleep(100); // no event processing
    QTest::qWait(100); // event processing

    1 Reply Last reply
    0

    • Login

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