Is this what you mean?<br>If not- would you add an example?<br><br><br><br><br>from PyQt4 import QtCore, QtGui<br><br>import sys<br><br>class Dialog(QtGui.QDialog):<br> <br> def __init__(self,parent=None):<br>
QtGui.QDialog.__init__(self, parent)<br> <br> self.button1 = QtGui.QPushButton("One")<br> self.button2 = QtGui.QPushButton("Two")<br> self.button3 = QtGui.QPushButton("Three")
<br> self.button4 = QtGui.QPushButton("Four")<br> <br> self.h_layout = QtGui.QHBoxLayout()<br> <br> self.v1_layout = QtGui.QVBoxLayout()<br> self.v2_layout = QtGui.QVBoxLayout
()<br><br> self.v1_layout.addWidget(self.button1)<br> self.v1_layout.addWidget(self.button2)<br> self.v2_layout.addWidget(self.button3)<br> self.v2_layout.addWidget(self.button4)<br><br>
self.h_layout.addChildLayout(self.v1_layout)<br> self.h_layout.addChildLayout(self.v2_layout)<br><br> self.setLayout(self.h_layout)<br> <br> <br>def main(args):<br> <br> app = QtGui.QApplication
(args)<br> dlg = Dialog()<br> dlg.show()<br> sys.exit(app.exec_())<br> <br>#--------------------------------------------------<br><br>if __name__ == "__main__":<br> main(sys.argv)<br><br><br>Message: 1
<br>Date: Fri, 26 Jan 2007 23:15:42 +0100<br>From: Andreas Pakulat <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:apaku@gmx.de">apaku@gmx.de</a>><br>Subject: [PyKDE] [<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:cappy2112@gmail.com">
cappy2112@gmail.com</a>: re:Multiple layouts on same<br> Window]<br>To: PyKDE <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pykde@mats.imk.fraunhofer.de">pykde@mats.imk.fraunhofer.de</a>
><br>Message-ID: <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:20070126221542.GA2160@morpheus.apaku.dnsalias.org">20070126221542.GA2160@morpheus.apaku.dnsalias.org</a>><br>Content-Type: text/plain; charset=us-ascii
<br><br>Please stay on the list.<br><br>What I see there: The QWidget doesn't have a<br>parent, which means it is not a child of your dialog. Also it's show()<br>method is never called, so it doesn't display.<br>
And last but not least: You don't need the QWidget, just set the layout<br>on the dialog.<br><br>----- Forwarded message from Tony Cappellini <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:cappy2112@gmail.com">
cappy2112@gmail.com</a>> -----<br><br>*Hello Andreas,<br><br>Thanks for the reply.<br><br>I've added 2 QVBoxLayouts as children of the QHBoxLayout.<br>A tiny window appears without any widgets.<br>What have I not done correctly?
<br><br>class Dialog(QtGui.QDialog):<br>