> > On Wed, May 15, 2013 at 3:08 AM, Sujan Dasmahapatra > <sujan.dasmahapa...@gmail.com <mailto:sujan.dasmahapa...@gmail.com>> wrote: > > I got a QTableWidget with 3 columns in it. How can I resize the > columnwidth > based on resizing my MainWindow. Currently I have set a fixed width for > column using
Create your own table widget class and derive from QTableWidget. Overload the resizeEvent(QResizeEvent*) function and in it, set new column widths based on the new table width (in addition to calling the base class version.) I assume the table widget will change size when your main window changes size. Bill _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest