That's a good way to do it but be careful to manage the parents of
your widgets properly or you'll get strange behavior.
On Aug 27, 2009, at 8:58 AM, Peter Shinners wrote:
I do not have code in an easy to show format. Essentially you have a
top level widget that is a QSplitter with two children. When you
want to split any of the internal panels, replace that panel with
another QSplitter, move the panel into the new child splitter, and
add an empty or default panel on the other side of the splitter.
-----Original Message-----
From: [email protected] [mailto:[email protected]
] On Behalf Of tabish-->
Sent: Thursday, August 27, 2009 1:38 AM
To: [email protected]
Subject: RE: [PyQt] split a layout in half to add a widget at runtime.
Dear Peter Shinners-2
can you please help me with a code of it coz i am unable to go about
with
the splitters.
please help me out.
-------------------------------------------------------------
Peter Shinners-2 wrote:
These are pictures of Houdini btw, not Maya. I've written this type
of
interface a couple times before. My best success was moving away from
"nested splitters" and moving to a "flat" layout of a bunch of panel
widgets.
This required me to handle all the dragging myself, but that was a
fairly
easy part to write. Then I could do things like drag at the
intersections
to move in both directions. Best of all it freed my layout from
each panel
having an arbitrary "depth", which will imply small restrictions on
the
types of splits you can make.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of tabish-->
Sent: Wednesday, August 26, 2009 12:03 AM
To: [email protected]
Subject: [PyQt] split a layout in half to add a widget at runtime.
split a layout in half to add a widget at runtime.
it should work similar to split ofr Qdockwiget.
please check the image below to get an idea about it, please help
me out i
am stucked.
this is before the split of the window, and please note that all the
widget
are tabwidget
http://www.nabble.com/file/p25147662/maya_before.png
http://www.nabble.com/file/p25147662/maya_after.png
this is after the split.
--
View this message in context:
http://www.nabble.com/split-a-layout-in-half-to-add-a-widget-at-runtime.-tp25147662p25147662.html
Sent from the PyQt mailing list archive at Nabble.com.
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
--
View this message in context:
http://www.nabble.com/split-a-layout-in-half-to-add-a-widget-at-runtime.-tp25147662p25167264.html
Sent from the PyQt mailing list archive at Nabble.com.
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt