When working on Windows and Visual Studio always put class definitions containing the Q_OBJECT
macro into a header file, not into a source file. Because that messes with the build process of Qt and Visual Studio. Just seen on Visual Studio 2022 and Qt 6.8