I was missing that line, but it still doesn't work. Thanks anyways.
Now I am getting these errors:
2>ProgramExec_automoc.obj : error LNK2005: "public: virtual struct QMetaObject const *...
My guess is that the headerData() method of the model returns the horizontal text's size hint.
I don't see problem on the first view of the code, maybe you forgot something in the cmake script ?
Only one line is enough : set(CMAKE_AUTOMOC TRUE).
I am using cmake and as I told you already, I deleted the build folder so I necessarily had to rerun it. Did not work.... I read that already in previous threads and my Q_OBJECT is already in the...malfoy1988 Yesterday, 22:33
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.