Re: PyQt layout question: QScrollView and QGridLayout?

2005-11-19 Thread Volker Lenhardt
Thank you Don, thank you David, I was convinced that there must be a simple solution at hand. A dummy widget! It does work to my needs. Don's ScrollToolView is very interesting though not yet the right tool for my actual application, but I've got some more ideas for long winter nights ... All

Re: PyQt layout question: QScrollView and QGridLayout?

2005-11-17 Thread David Boddie
Volker Lenhardt wrote: > Phil Thompson schrieb: > > On Thursday 17 November 2005 2:56 pm, Volker Lenhardt wrote: [Using a QGridLayout in a QScrollView] > >>Is there a way to get it to work? Filling a box viewport with lots of > >>padding boxes and white space labels to establish grids is very > >

Re: PyQt layout question: QScrollView and QGridLayout?

2005-11-17 Thread dwelch
Volker Lenhardt wrote: > Phil Thompson schrieb: > >> On Thursday 17 November 2005 2:56 pm, Volker Lenhardt wrote: >> >>> prefer to use QGridLayout, but cannot add it to the scroll view. >>> >>> sc=QScrollView(self) >>> layout=QGridLayout(..., sc.viewport()) >>> sc.addChild(layout) >>> >>> results

Re: PyQt layout question: QScrollView and QGridLayout?

2005-11-17 Thread Volker Lenhardt
Phil Thompson schrieb: > On Thursday 17 November 2005 2:56 pm, Volker Lenhardt wrote: > >>prefer to use QGridLayout, but cannot add it to the scroll view. >> >>sc=QScrollView(self) >>layout=QGridLayout(..., sc.viewport()) >>sc.addChild(layout) >> >>results in a TypeError. >> >>Is there a way to ge

Re: PyQt layout question: QScrollView and QGridLayout?

2005-11-17 Thread Phil Thompson
On Thursday 17 November 2005 2:56 pm, Volker Lenhardt wrote: > For a QApplication (PyQt) on the small screen of my Zaurus 5500 PDA I > try to layout my data output in a QScrollView as the central widget. I'd > prefer to use QGridLayout, but cannot add it to the scroll view. > > sc=QScrollView(self)

PyQt layout question: QScrollView and QGridLayout?

2005-11-17 Thread Volker Lenhardt
For a QApplication (PyQt) on the small screen of my Zaurus 5500 PDA I try to layout my data output in a QScrollView as the central widget. I'd prefer to use QGridLayout, but cannot add it to the scroll view. sc=QScrollView(self) layout=QGridLayout(..., sc.viewport()) sc.addChild(layout) results