[PyQt] adjusting layouts question

Nick Gaens nickgaens at gmail.com
Fri Nov 12 17:25:51 GMT 2010


I've got no notice of a directly manipulated (using mouse dragging) column
width concerning QLayout's.. You could however do this programmatically by
coupling some other numerical input widget (QSpinBox) to the columnWidth
setter of your QLayout.


On Fri, Nov 12, 2010 at 16:27, dizou <di_zou at yahoo.com> wrote:

>
> I have a widget with a a layout and some widgets:
>
> class MainWidget(QWidget):
>    def __init__(self, parent):
>
>        QWidget.__init__(self, parent)
>
>        gridLayout = QGridLayout()
>        gridLayout.addLayout(treeControlLayout, 0, 0)
>        gridLayout.addWidget(self.tree, 1, 0)
>        gridLayout.addLayout(viewControlLayout, 0, 1)
>        gridLayout.addWidget(self.view, 1, 1)
>        gridLayout.addLayout(viewInfoLayout, 1, 2)
>        gridLayout.addLayout(viewControlLayoutBottom, 2, 1)
>
>        self.setLayout(gridLayout)
>
> This widget has 3 columns. How do I make it so that the user can adjust the
> width of the column?
> --
> View this message in context:
> http://old.nabble.com/adjusting-layouts-question-tp30200354p30200354.html
> Sent from the PyQt mailing list archive at Nabble.com.
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Nick Gaens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101112/6a0e6981/attachment.html>


More information about the PyQt mailing list