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. QTimer singleShot function
Forum Updated to NodeBB v4.3 + New Features

QTimer singleShot function

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k Views 1 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.
  • A Offline
    A Offline
    ajaynatu
    wrote on last edited by
    #1

    Hi,
    I have doubt regarding the working of QTimer singleshot function. In my code the QTimer::SingleShot function is used twice, calling the same function on timeout. The doubt i have is, if the timeout for both QTimer::SingleShot functions happen at the same time, will the slot be called at the same time or it will be called twice but one after another.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      If you are not using multiple threads all code is run serial and your slot will be invoked twice, one after another.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ajaynatu
        wrote on last edited by
        #3

        thank you lukas, that cleared it!

        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