Hi,

I am creating a QTableWidget with multiple rows and columns.
And inserting custom QWidgets into the table.
These custom widgets are having diff. widths.

I am giving the below settings for the QTableWidget:

QTableWidget *m_pTimelineTable = new QTableWidget();

m_pTimelineTable->setRowCount(m_masterLayout.sRowCount);
m_pTimelineTable->setColumnCount(m_masterLayout.sColCount);

m_pTimelineTable->horizontalHeader()->hide();
m_pTimelineTable->verticalHeader()->hide();

m_pTimelineTable->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContent s);
m_pTimelineTable->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContent s);

m_pTimelineTable->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysO ff);
m_pTimelineTable->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff );
...
...
//Custom Widget
MyView *mView = new MyView(); //Inherited from QWidget
int iCustomWidth = 600;
mView->setGeometry(0,0,iCustomWidth,250);

//This iCustomWidth will be different for each custom widget
...
...
m_pTimelineTable->setCellWidget((*bIterator).row_num, (*bIterator).col_num, mView);[/I][/I]


Now, all CustomWidgets in each cell of the QTableWidget is having the same width.

Anyone, could you please suggest me to get the diff. widths of custom widgets in each cell ...

Thanks
Kalyan