Qtableview double header
-
How to add double header for 3 columns in a Qtableview
model2->setHeaderData(0, Qt::Horizontal, tr(" Mesh "));
model2->setHeaderData(1, Qt::Horizontal, tr(" Driver"));
model2->setHeaderData(2, Qt::Horizontal, tr(" Driven"));
i neeed one more header on these column how to do please suggest? -
Hi
What you mean with double header ?You can do
model2->setHeaderData(1, Qt::Horizontal, tr(" test1\ntest1"));
-
Already asked a week ago - the search function is your friend...
https://forum.qt.io/topic/125490/qtablewidget-with-2-headers/
-
@Christian-Ehrlicher Thanks but there is no working example
-
@n-2204 said in Qtableview double header:
Thanks but there is no working example
And you think someone here found a solution in the last week??
-
-
@n-2204
Hi
But did you try
https://stackoverflow.com/questions/22755171/spanning-horizontal-header-in-qt/22756565#22756565
as listed in the other thread ?