#include int main(int argc, char **argv) { QApplication app(argc, argv); if (argc > 1) app.setLayoutDirection(Qt::RightToLeft); QTableWidget tw; tw.setRowCount(5); tw.setColumnCount(5); tw.horizontalHeader()->setSectionsMovable(true); tw.verticalHeader()->setSectionsMovable(true); tw.resize(500, 500); tw.show(); return app.exec(); }