[Qt-interest] QSplitter only show when needed

Jugdish jugdizh at gmail.com
Wed May 5 18:13:13 CEST 2010


Sorry, realized this needed some clarification:

The button/textedit at the top is actually a single composite widget.
Clicking the button toggles the visibility of whatever type of widget has
been inserted inside it (in this case, a QTextEdit widget). So because of
that, the QSplitter is the parent of this composite widget, not just the
textedit.

On Wed, May 5, 2010 at 3:36 PM, Jugdish <jugdizh at gmail.com> wrote:

> I'm trying to create a window with a QSplitter than only displays when
> needed, but don't see a good way to do so.
>
> The window is split horizontally down the middle -- the top half is a
> button which toggles the visibility of a textedit field directly below it,
> and the bottom half is another textedit field. I only need the QSplitter to
> be visible when both textedits are visible, but when the top textedit field
> is hidden, the QSplitter serves no purpose and should not be visible. How
> can I have the QSplitter's visibility toggle along with the top textedit
> when the 2 textedits are the children of the QSplitter?
>
> Thanks
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100505/252339b2/attachment.html 


More information about the Qt-interest-old mailing list