Don't use Qt QObject properties in mode changes. Use MonitorWidget class properties instead.