After 2 weeks and no changes, it shows 1k problems, which did not exist before

  • Hi!
    I have this problem, I am creating desktop application using QtCreator C++. My program was running without any problems. Today I wanted to add an extra feature to it and it is impossible to even run the old version because I have more than 1k problems with my code for example:
    variable has incomplete type 'QTextStream'
    candidate function not viable: no known conversion from 'QIODevice::OpenModeFlag' to 'QIODevice::OpenMode' (aka 'QFlagsQIODevice::OpenModeFlag') for 1st argument
    use of undeclared identifier 'endl'
    and much! much more

    I don't understand what happened, because I did not change anything in the code.
    Anyone has any idea?

  • Lifetime Qt Champion

    Make sure to not mix Qt4 and Qt5 headers.

  • Lifetime Qt Champion

    Also, check you did not create any cyclic includes adding the new feature.
    That would be like the new .h file includes other .h from the project that also includes the new features .h
    Or similar.

Log in to reply