Important: Please read the Qt Code of Conduct -

virtual slot moc error

  • Hey guys!
    In Qt docs is written, that I slots can be virtual. I have derived my own class from QTableView, and defined their several slots, I want them to be virutal, cause I want to subclass this class, and override their these slots. The problem is that i get MOC error: [debug/moc_template.cpp] Error 1? Am I doing something wrong?

  • Lifetime Qt Champion


    Can you show your class code and the complete error you get from the compilation ?

Log in to reply