0

I need adjust headers of two tables, standing near each other, because headers have different lines of text. It seems impossible.

Please any help!

ymoreau
  • 3,402
  • 1
  • 22
  • 60
TatianaP
  • 177
  • 2
  • 10

1 Answers1

2

Create a class derived from QHeaderView and provide your own implementation of sizeHint to return the correct height you would like. i.e.

QSize MyCustomHeaderView::sizeHint() const
{
    // Get the base implementation size.
    QSize baseSize = QHeaderView::sizeHint();

    // Override the height with a custom value.
    baseSize.setHeight( 25 );

    return baseSize;
}
Matthew
  • 2,759
  • 18
  • 28