QSplitter disappears once child widget is hidden.
-
-
Hi,
You can use QSplitter::setSizes for that
-
Thanks SGaist,
yes, this solution works, it's just that childs still think they are visible
(i.e. "B->isVisible();" allways returns with "true")@QList<int> sizes;
sizes.append(300); // Child A
sizes.append(0); // Child B (hide it)mUI.splitter->setSizes(sizes);@
-
You're welcome !
Indeed, collapsed doesn't necessarily mean invisible however you should be able to deduct this from the widget size