[#78198458] Connect GridView to model on showEvent, and disconnect on hideEvent.