How to close all windows if one of them is closed?

your two options:

  • live with highgui's design scope
  • use a GUI toolkit and make your own GUI

I did show you how to handle key presses using waitKey() in the other thread. your C++ translation dropped that functionality.

1 Like