Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Adding existing directory - what NOT to add ?



  • When adding existing directory I obviously do not want another main.cpp.
    What about "moc" files? .pro ?
    What are cflags ?

    4c131666-9c9f-4d57-8d36-d1074eb3841a-image.png



  • you add *.cpp *.h *.ui which are only needed. if any of them is not used, do not add it.
    sure not main.cpp if it is already there.
    ui_ and moc_ files are created when qt code is compiled.
    cflags are flags for c code build
    cxxflags are flags for c++ code build
    I do not think you need them.



  • you add *.cpp *.h *.ui which are only needed. if any of them is not used, do not add it.
    sure not main.cpp if it is already there.
    ui_ and moc_ files are created when qt code is compiled.
    cflags are flags for c code build
    cxxflags are flags for c++ code build
    I do not think you need them.


Log in to reply