user2502954
user2502954

Reputation:

Notify Qt Window when its visibility status has changed

How can I notify a Qt Window when its visibility status has changed?

Example Use Case:

  1. User goes from Window A (hide) to Window B (show)
  2. User returns to Window A (show) from Window B (hide)

I want to invoke a function when Window A changes from (hide) to (show).

Upvotes: 0

Views: 266

Answers (1)

Marco A.
Marco A.

Reputation: 43662

Connect to the

void visibilityChanged(QWindow::Visibility visibility)

signal as stated in the documentation to be notified of a QWindow visibility status change.

Upvotes: 2

Related Questions