QTableWidgetSort::QTableWidgetSort(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
ui.tableWidget->setRowCount(10);
ui.tableWidget->setColumnCount(10);
QStringList header;
header<<"one"<<"two"<<"three";
ui.tableWidget->setHorizontalHeaderLabels(header);
ui.tableWidget->horizontalHeader()->setMovable(true);//??????
ui.tableWidget->setSortingEnabled (true);
//connect(ui.tableWidget->horizontalHeader(), SIGNAL(sectionClicked(int)), this, SLOT(mySort(int)));
}