Unsolved QTableWidget with 2 headers
-
Good afternoon.
Is it possible to make superheadings over some QTableWidget headers so that the superheadings include one or more headers?
-
@Mikeeeeee
No,QTableWidget
/QTableView
does not offer that. -
Hi,
You will have to implement your own QHeaderView for that kind of stuff.
You have here an example that shows how to implement the span of a header over multiple columns. It could be a base for your custom header.
-
This example does not run. Are there any other examples?
-
@Mikeeeeee said in QTableWidget with 2 headers:
This example does not run
What do you mean? It does not compile? It does not start? Any error messages?
-
-
Maybe share the error you are getting ?
-
@SGaist
That would be a lot to ask.The example is from 2014. Even then there are two comments from people about compiling it. I don't know whether @Mikeeeeee heeded those.