model->setHeaderData( 0, Qt::Horizontal, "1st level\n2nd level" );
QStringList labels;labels << "1st level" << "2nd level";model->setHeaderData( 0, Qt::Horizontal, labels.join( "\n" ) );