Skip to content

Issue with 46469720 HorizontalHeader RowHeights #48

@korl1n

Description

@korl1n

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions