Oh btw here I reproduced this bug... so easy... Sorting is broken.

Qt Code:
  1. #include <QtGui>
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5. QApplication app(argc, argv);
  6. qt->verticalHeader()->setVisible(false);
  7. qt->setSortingEnabled(true);
  8. qt->sortItems(0, Qt::AscendingOrder);
  9. qt->setRowCount(75);
  10. qt->setColumnCount(2);
  11. QTableWidgetItem *__colItem = new QTableWidgetItem();
  12. __colItem->setText(QApplication::translate("t", "test", 0, QApplication::UnicodeUTF8));
  13. qt->setHorizontalHeaderItem(0, __colItem);
  14. for(int i = 0; i < 75; i++){
  15. ax[i] = new QTableWidgetItem(QString("Ebeeef%1").arg(i));
  16. qt->setItem(i, 0, ax[i]);
  17. qt->setCellWidget(i, 0, new QPushButton("ff"));
  18. }
  19. qt->show();
  20. return app.exec();
  21. }
To copy to clipboard, switch view to plain text mode 

I reported it to TaskTracker, but they said "mail sent" and didn't put it on yet....
This is definitely a bug.