[Interest] TableWidget size dynamically
Alex Malyushytskyy
alexmalvtk at gmail.com
Thu May 16 01:31:18 CEST 2013
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.dasmahapatra at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130515/019068a0/attachment.html>
More information about the Interest
mailing list