[PyQt] QTableWidget in QSplitter

Aaron Digulla digulla at hepe.com
Mon Mar 24 08:08:22 GMT 2008


Gregor Kling schrieb:

> I have a MainWindow of which the Centralwidget consist of a Splitter
> with more Splitters in it.
>[...]
> Now what I want is, that each QTableWidget expands its QTableWidgetItems
> to the actual size
> of its respective Splitter.
> Does anyone have a clue how to do this ?

Attach to the resize signal of the splitters and then manually set the
width of the table items to the size of the splitters.

Regards,

-- 
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://darkviews.blogspot.com/          http://www.pdark.de/


More information about the PyQt mailing list