I assume something minimal like this works:
#include <QtGui>
int main(int argc, char* argv[])
{
table.
horizontalHeader()->setResizeMode
(QHeaderView::Fixed);
table.
verticalHeader()->setResizeMode
(QHeaderView::Fixed);
for (int row = 0; row < table.rowCount(); ++row)
{
for (int col = 0; col < table.columnCount(); ++col)
{
table.setItem(row, col, item);
table.openPersistentEditor(item);
}
}
table.show();
return a.exec();
}
#include <QtGui>
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
QTableWidget table(5, 2);
table.horizontalHeader()->setResizeMode(QHeaderView::Fixed);
table.verticalHeader()->setResizeMode(QHeaderView::Fixed);
for (int row = 0; row < table.rowCount(); ++row)
{
for (int col = 0; col < table.columnCount(); ++col)
{
QTableWidgetItem* item = new QTableWidgetItem;
table.setItem(row, col, item);
table.openPersistentEditor(item);
}
}
table.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Could you try filling the example above with steps you've made in the actual project to make the example reproduce the problem?
Bookmarks