Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to detect OS lock event (e.g., SessionSwitch in Windows)

    General and Desktop
    2
    2
    372
    Loading More Posts
    • 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.
    • AaronC
      AaronC last edited by

      What's the best way to detect that the user has locked their session in Windows & Mac?

      I'm wanting to log users out of my application when they lock the OS.

      Thanks,
      Aaron

      1 Reply Last reply Reply Quote 0
      • K
        kuzulis Qt Champions 2020 last edited by

        On windows - use service.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post