If you do the includes without the module path part then the same include can be used for Qt4 and Qt5, e.g.

Qt Code:
  1. #include <QMainWindow>
To copy to clipboard, switch view to plain text mode 

Cheers,
_