I have a QTableView
object in my dialog.
I need to access the horizontal headers of this table and put them into a QStringList
object.
Despite intensive search, I could not find in Qt documentation how to get this list of headers.
Edit: The closest I've found anywhere is this, but it's dealing with QTableWidget
, and the functions used aren't available for QTableView
. Unfortunately, I'm not at liberty to switch the object in question to a table widget.