I created a QTableView and hided initially few columns with setColumnHidden. I Build static the application and now I want to hide more columns with setColumnHidden, but no effect. More, if I try to comment the old lines that used setColumnHidden it has no effect. The QTableView I made with qt creator designer not by code. Please help.
Did you rerun qmake and rebuild already?
The project is almost ready, but I want to change something.
at least part of your can be explained that something is not compiled, but be.
Therefore, I am suggesting that run qmake again and do a complete rebuild of your project.
You are stating that you are changing source, but the code change is not reflected in new behaviour of your application. A complete new compilation may cure the whole situation.
do not work.
Probably best is starting to debug and see if you are passing by the statements at all.
Which OS are you on?
Are you using Qt creator?
Vicky Sharma last edited by
Might be something missing, because I tried it and its working.
So check once...
I dont know what was happening, but I find the solution. I delete the built directory, and at rebuild it works. I use win7 and Qt creator. Thanks for answers.
Basically you followed my initial advice. Deletion of the build folder stuff is identical to running qmake again and rebuild.
make files are a measure to minimize the compilation need and concentrate only on part requiring recompliation, but sometimes the logic gets fooled. Therefore, rerun qmake and rebuild is sometimes the best advice.