1-many relationships, vector or QxList?
Posted: Fri Jan 22, 2016 10:54 am
Hi,
In the QxBlog tutorial there is a vector<> of "blogs" in an "author" to hold the 1-to-many relationship. There is also a vector<> of "blogs" in a "category" to hold that 1->many relationship.
However there is a QList<> of "comments" in a "blog" to hold that 1->Many relationship. Is there an important reason for the different collections in use here?
Thanks.
In the QxBlog tutorial there is a vector<> of "blogs" in an "author" to hold the 1-to-many relationship. There is also a vector<> of "blogs" in a "category" to hold that 1->many relationship.
However there is a QList<> of "comments" in a "blog" to hold that 1->Many relationship. Is there an important reason for the different collections in use here?
Thanks.