Hi,

Actually i am creating a Main WIndow application which have menu-bar and a tool-bar and ofcourse a central widget.
But my central widget may be one type of widget out of three type say A, B and C. this is controled by a toolbar item (combo box) which contains these three options A, B and C.

For that I created a class say CentralWidget of type QWidget, and I also created three other classes say ClassA, ClassB and ClassC of type QWidget corresponding to A, B and C.

But I am not understanding the relationship among ClassA, ClassB, ClassC and the CentralWidget, so that at runtime I am able to show one of the Widget( ClassA, ClassB, ClassC).

plz guide me.

thanks & regards
sumsin