Qt Interview Questions
In this post we will look at Qt Interview questions. Examples are provided with explanation.
Q: What is Qt?
A: Qt is a cross-platform application framework and widget toolkit for creating classic and embedded graphical user interfaces, and applications that run on various software and hardware platforms with little or no change in the underlying codebase, while still being a native application with native capabilities and speed
Q: Which IDE you use for developement of Qt code?
Q: What are advantages of using Qt Containers over STL containers?
A: The advantages are as follows -
- Qt containers are more lightweight than STL containers. They consume less memory
- Qt containers documentation is much better than STL container. So use is much easier.
- The learning curve for Qt container is comparatively less than STL container.
Q: How to print to console when using Qt?
#include <QTextStream> QTextStream out(stdout); foreach(QString a, strings) out << a << endl;