Hi,

I am a new bee of QT.

I try to use QTableView and QAbstractTableModel. I created my own TableModel and called ui.tableView->setModel. Everything looks fine.

But I find that I cannot set the width of column from my TableModel.

I found the function, QTableView::setColumnWidth. But I don't know when I am able to call it. Because I only return the string from Model, I don't know when the framework will create the columns. But I need set width of the column after it is created.

Anybody knows what I must do? Thanks a lot.

Best Regards,
Michael zhang