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. What happens to a minimized application?
Forum Updated to NodeBB v4.3 + New Features

What happens to a minimized application?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.4k Views 2 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.
  • K Offline
    K Offline
    Kayote
    wrote on last edited by
    #1

    When you minimize an application, does the main-thread "pause" or anything like that? I'm primarily asking because I've made a program that I want to be fully functional and keep doing what it's doing, even when minimized, but a few users of the program reported it not working correctly after they have minimized it.

    K 1 Reply Last reply
    0
    • K Kayote

      When you minimize an application, does the main-thread "pause" or anything like that? I'm primarily asking because I've made a program that I want to be fully functional and keep doing what it's doing, even when minimized, but a few users of the program reported it not working correctly after they have minimized it.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Kayote

      You are asking a pretty general question which is not really dependent on Qt. There are parameters not targeted by Qt, which do play the major roles.
      Those parameters are device, device type and OS and probably an even longer list.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kayote
        wrote on last edited by Kayote
        #3

        @koahnig Yeah I know it's not dependant on Qt, however I haven't been able to find any details about this and just thought I'd ask here. My application is for Windows and I was just wondering if there was anything I could do to make sure my code still runs when it's minimized.

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          For classic desktop Windows application there's no general change in how the app behaves. It just receives changeEvent of type QEvent::WindowStateChange. The focus is also lost if the app had it before minimizing. Otherwse it's business as usual.

          The Windows Runtime apps (e.g. UWP) behave differently. They are suspended/resumed and they can make use of background tasks to do stuff when the app is suspended.

          Here are some resources for other platforms: Android, iOS

          1 Reply Last reply
          2

          • Login

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