structs are a C'ism. Since you need to be using C++ to use Qt you should be using classes. Structs just resolve to a class with public access by default, which is bad (no encapsulation of data).