[Qt-interest] One Widget on top of Another Problem
Andre Somers
andre at familiesomers.nl
Tue May 11 14:04:03 CEST 2010
On 11-5-2010 13:44, Sujan Dasmahapatra wrote:
> /*Dear Friends*/
> /*One Widget is on top of snother, when a radio button is checked
> first should pop up, and when the second radio button is checked the
> second widget should pop up...I have tried using show(), hide()
> slots.. but it didnt work. Any idea would be highly appreciated. See
> the code snippet below.*/
> /*Using Qt- designer I have placed two widgets on of one another.*/
>
Look into QStackedWidget. You can put each of your editors onto
different pages of the stack.
Apart from that, your code looks like you are creating widgets on the
stack. Don't.
André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100511/236ee7d3/attachment.html
More information about the Qt-interest-old
mailing list