STL or Qt containers?

This is a difficult to answer question. It can really boil down to a philosophical/subjective argument.

That being said…

I recommend the rule “When in Rome… Do as the Romans Do”

Which means if you are in Qt land, code as the Qt’ians do. This is not just for readability/consistency concerns. Consider what happens if you store everything in a stl container then you have to pass all that data over to a Qt function. Do you really want to manage a bunch of code that copies things into/out-of Qt containers. Your code is already heavily dependent on Qt, so its not like you’re making it any more “standard” by using stl containers. And whats the point of a container if everytime you want to use it for anything useful, you have to copy it out into the corresponding Qt container?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)