Greetings,

I have a dialog containing 4 tabs. Each tab displays a form created by Qt Designer. In the constructor of each widget that is drawn on a tab, I call
Qt Code:
  1. ui.setupUi( this )
To copy to clipboard, switch view to plain text mode 
which appears to draw the form on the tab widget. I would like to delay the rendering of the non-visible forms until their tab has been selected. Does anyone know if this is possible and if so, how?

I have tried delaying the call to ui.setupUi() until its tab is selected, but then the form is not drawn. Only if ui.setupUi() is called in the constructor is the form visible when the tab is selected.

Background:
My application connects to hardware on the network and must ACK each device every 600ms to keep the device connected. When there are a large number of devices online (~250) the cost of drawing all the complicated forms in the dialog starves the thread that is doing the ACK and the devices must reconnect. My thinking is that if I can delay rendering the forms that are not visible I can keep the devices active without impacting performance of the UI.