Hello, I have found a solution for one part of the problem:
If the object files are created correctly, but the linker fails with this output:
I can't answer your first question, but I can give some recommendations on your data structures.
You need to read up on data structures, and particularly the list of functions supplied by Qt for...
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.