PDA

View Full Version : problem setting headers in qt4.3



reldruH
September 1st, 2007, 11:55 PM
I don't know if this is the right place to ask this but I just started using qt and I have a QTreeView that I'm trying to set the text of the header for (I think it's the header at least). Going through the Qt documentation the closest thing I've found to what I need is QAbstractItemModel::setHeaderData. Unfortunately, no matter where I call that or what arguments I pass to it the header never changes. The model I'm using is a QStringListModel and the full code that I'm using is here: http://qtnode.net/index.php/pastebin/4589

Thanks in advance for any advice