[Qt-interest] Swapping out widgets?

Timothy Reaves treaves at silverfieldstech.com
Sun Dec 20 15:46:20 CET 2009


	I'm wanting a UI where I have some buttons on the left, and a frame on the right.  When a use clicks on one of the buttons, I'd like to replace the frame on the rights content with a different widget.  I understand the wiring, but I can't figure out how to swap contents.  QFrame has an addChild method, but no remove, and no replace.  What is the correct way to do this?  Unfortunately I can not use tabs, as the window is fairly small, and the tabs text too large (and I'm no good at icons!).



More information about the Qt-interest-old mailing list