#StackBounty: #c++ #qt #include #qt5 Best Practice For Qt Includes And Precompiled Headers?

Bounty: 50

What’s the current “best practice” regarding the inclusion of Qt header files when using a modern and recent C++ compiler (e.g. MSVC2015) with precompiled headers activated?

Example:

#include <QStringList> 
#include <QTreeWidget>
#include <QListWidget>

vs.

#include <QtCore>
#include <QtGui>
  • What convention should I choose for a new project?

  • What are the benefits/drawbacks of either?

  • What is more common for new projects?


Get this bounty!!!

Leave a Reply