It's a bit late, but hopefully it will save someone else a bit.
For me, the error is caused by a combination of two things: QCleanlooksStyle and QTableWidget . In ubuntu, the default style is QCleanlooksStyle or QGtkStyle (which inherits from QCleanlooksStyle ). When a QTableWidget is colored with one of these styles, I saw this error. My solution was something like this:
int main(int argc, char *argv[]) { QApplication a(argc, argv); a.setStyle(new QPlastiqueStyle()); MainWindow w; w.show(); return a.exec(); }
source share