PDA

View Full Version : Tabwidget not refreshing properly



seguprasad
21st September 2007, 14:01
Hi All,

I have created 2 dialogs separately and placing these dialogs on diffrent tabs of QTabWidget placed on another (3rd) dialog at runtime.

Here the problem is the controls of both the dialogs are shown on the same tab initially.
If I select the second tab, then it is showing correct controls on this tab. If I go to previous tab, then also it is showing the controls correctly. But initially is showing all the controls of both dialogs.

Can anybody help me out to solve this problem.

Thanks,
Segu

marcel
21st September 2007, 14:09
I have created 2 dialogs separately and placing these dialogs on diffrent tabs of QTabWidget placed on another (3rd) dialog at runtime.

That's not correct. You QWidgets instead and add these to the tab widget. Dialogs are not meant to be used in this manner.

seguprasad
24th September 2007, 12:40
Thank you very much marcel.

We changed the QDialogs into QWidgets. Now it is working fine.

-Segu