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. Getting current active window
Forum Updated to NodeBB v4.3 + New Features

Getting current active window

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 446 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.
  • P Offline
    P Offline
    Pradeep NS
    wrote on last edited by
    #1

    Hi All,

    I am planning to get the current active window from my application.
    when the application is run, that window will be the active window of the application. Once the application is minimized, and after some time old window will be deleted and new window will be shown, but that time the active window was pointing to the deleted window, then my application crashes when i access the active window.

    Is there any way i update the active window to the current window that has been shown/appeared once the application is minimized.

    Please suggest a solution

    JonBJ 1 Reply Last reply
    0
    • P Pradeep NS

      Hi All,

      I am planning to get the current active window from my application.
      when the application is run, that window will be the active window of the application. Once the application is minimized, and after some time old window will be deleted and new window will be shown, but that time the active window was pointing to the deleted window, then my application crashes when i access the active window.

      Is there any way i update the active window to the current window that has been shown/appeared once the application is minimized.

      Please suggest a solution

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @Pradeep-NS
      Depends whether you are keeping your own track of what the active window is, or using Qt calls. But in any case, when you "after some time old window will be deleted and new window will be shown", which you say is happening while minimized, simply make sure you move the active window when you delete the current one, if that is necessary.

      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