[Qt-interest] QTableView: reorder multiple columns at once
Mildred Ki'Lya
ml.mildred593 at gmail.com
Thu Jan 22 15:19:22 CET 2009
Hi,
I'm trying to create a spreadsheet-like interface using QTableView. And I
want to be able to reorder many columns/rows at once. I already enabled the
movable property of both headers, but it let me reorder only one row/column
at a time.
I would like to be able to select rows/columns, and then click one one, and
be able to move the whole lot. But when I start clicking to drag the
rows/columns, all rows/columns become deselected apart from the row/column I
clicked.
I thought I would just monitor the movement of a header. And if other
headers were selected before, move them as well.
But in the QHeaderView cass, there seems no way to get the headers that are
selected. Is it possible? If not, do you have an idea on how to solve my
problem?
Thanks.
Mildred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090122/8cdcf845/attachment.html
More information about the Qt-interest-old
mailing list