[Qt-interest] Swapping out widgets?
Timothy Reaves
treaves at silverfieldstech.com
Sun Dec 20 16:51:57 CET 2009
On Dec 20, 2009, at 9:46 AM, Timothy Reaves wrote:
> 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!).
I see that QLayout has add & remove widget. I'll try those.
More information about the Qt-interest-old
mailing list