Direct answer on your question will be ui.TableWidget->setColumnWidth(0,201); ui.TableWidget->setColumnWidth(1,120); ui.TableWidget->setColumnWidth(2,121);
Ask yourself why you did not like solution above or your own solution and what you want to achieve. Then if you can't figure out how to implement this describe what you want to achieve and ask question how. Regards, Alex On Wed, May 15, 2013 at 3:08 AM, Sujan Dasmahapatra < 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 > > ui.TableWidget->setColumnWidth(0,200); > ui.TableWidget->setColumnWidth(1,200); > ui.TableWidget->setColumnWidth(2,200); > > Any help is highly appreciated. > -- > Thanks & Regards > Sujan > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest