[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Whitespaces inside table widget
From:       "Hans-Peter Jansen" <hpj () urpla ! net>
Date:       2011-01-31 13:56:06
Message-ID: 201101311456.06458.hpj () urpla ! net
[Download RAW message or body]

On Monday 31 January 2011, 12:51:38 disconnext wrote:
> I have a QTableWidget in layout. And I want it to change it's size
> with the addition of a new row, leaving no whitespaces inside table
> widget. (Row added, layout cell expanded.)
>
>         posLayout = QVBoxLayout()
>         posLayout.addWidget(posTitle)
>         posLayout.addWidget(posTable)
>         posLayout.addWidget(posTotal)
>   ?     posLayout.addStretch()
>
> Layout itself has a height not affected by the table. So when the
> stretch -> 0, the scrollbar appears instead of table expansion.
>
> Is there any "right way" to make it work?
> Or how can I calculate the my desired table size without whitespaces?

Your description is a bit sparse, e.g. on the targeted context. Either 
search the ML for solutions, or provide a minimum example demonstrating 
your issue. 

Pete
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic