-
-
Notifications
You must be signed in to change notification settings - Fork 298
Open
Description
Incorrect row heights for horizontal header.
If I make header like this:
for (int i = 0; i < 3; ++i){
int count = 6;
hHeader->setSpan(0, count * i, 1, count);
}
for (int i = 0; i < 3; ++i){
int count = 6;
hHeader->setCellLabel(0, count * i, QString("top_header_%1").arg(i+1));
for (int j = 0; j < count; ++j){
hHeader->setCellLabel(1, (count * i)+j, QString("bottom_header_%1").arg(j+1));
}
}
Instead of this :
hHeader->setSpan(0, 0, 2, 0);
hHeader->setSpan(0, 1, 2, 0);
hHeader->setSpan(0, 2, 2, 0);
hHeader->setSpan(0, 3, 1, 2);
hHeader->setSpan(0, 5, 2, 0);
hHeader->setCellLabel(0, 0, "cell1");
hHeader->setCellLabel(0, 1, "cell2");
hHeader->setCellLabel(0, 2, "cell3");
hHeader->setCellLabel(0, 3, "cell4");
hHeader->setCellLabel(1, 3, "cell5");
hHeader->setCellLabel(1, 4, "cell6");
hHeader->setCellLabel(0, 5, "cell7");
Bottom header doesn't show up. Could be "fixed" with setrowheight, but total height of header levels is not equal to sum of heights of that levels
Metadata
Metadata
Assignees
Labels
No labels