Works fine for me:
// main.cpp
#include <QtGui>
int main(int argc, char* argv[])
{
// uncomment the following line and the table can no more be edited:
// table.setEditTriggers(QAbstractItemView::NoEditTriggers);
table.show();
return app.exec();
}
// main.cpp
#include <QtGui>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QTableWidget table(4, 4);
// uncomment the following line and the table can no more be edited:
// table.setEditTriggers(QAbstractItemView::NoEditTriggers);
table.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks