Thank you!
Qt Code:
headerView->swapSections(2, 1);To copy to clipboard, switch view to plain text mode
Thank you!
Qt Code:
headerView->swapSections(2, 1);To copy to clipboard, switch view to plain text mode
Also have a look at QHeaderView::moveSection
QxTableView::QxTableView(QWidget *parent)
: QTableView(parent)
void QxTableView::moveSection(int from, int to)
{
verticalHeader()->moveSection(from, to);
}
void QxTableView::swapSections(int first, int second)
{
verticalHeader()->swapSections(first , second);
}
Bookmarks