Thanks Anda. I am using HeaderData(), which works, it does return "Name" for index 0. The issue is I can't figure out setHeadData(). It takes in 3 args. An index, the orientation, and an qobject. I don't know what to put as the qobject.
I was expecting this to work:
Qt Code:
model.setHeaderData(0, Qt.Horizontal, "Browser")To copy to clipboard, switch view to plain text mode
But I get an error, something like, "expected QObject, got String"
I did try this also... ...QObject.tr("Browser") as the 3rd arg, and I didn't get an error, but the header didnt change. It stayed as "Name"
Bookmarks