In most cases Qt containers are compatible with STL ones, so it doesn't matter which ones you use. For some cases Qt classes are faster or more adjusted to cooperating with other Qt classes. In some cases you have to use Qt containers.Originally Posted by Michiel
Qt classes are generally "not slower" than STL ones, but they have more capabilities when it comes to cooperating with Qt.How do they compare size/speed wise?
[qutote] And when, for example, I want to use an std::string in some existing widgets, will they need be converted to a QString (automatically or otherwise) first?[/quote]
In most cases it'll get automatically converted. But the main difference is that QString uses unicode internally, whereas std::string doesn't. It has more features than std::string and is probably a bit slower.
You can make a command-line version of the application using Qt too. You can even have the same binary for GUI and console versions.I'm trying to make this decision. I'm probably going to use std classes, though, since I'd like to make a command-line version of the same application, and I'd like to avoid using any QT libraries in that.
Bookmarks