Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #if QT_VERSION >= 0x050000
  2. #include <QtWidgets/QMainWindow>
  3. #else
  4. #include <QtGui/QMainWindow>
  5. #endif
  6.  
  7. error: C1083: Cannot open include file: 'QtGui/QMainWindow': No such file or directory
  8.  
  9. #if QT_VERSION >= 0x050000
  10. #include <QtWidgets/QMainWindow>
  11. #else
  12. #include <QtGui/QMainWindow>
  13. #endif
  14.  
  15. #include <QtWidgets/QMainWindow>
  16.  
  17. #if QT_VERSION >= 0x050000
  18. #include <QtWidgets/QMainWindow>
  19. #else
  20. #include <QtGui/QMainWindow>
  21. #endif
  22.  
  23. greaterThan(QT_MAJOR_VERSION, 4) {
  24. QT += widgets
  25. DEFINES += HAVE_QT5
  26. }
  27.  
  28. #ifdef HAVE_QT5
  29. #include <QtWidgets/QMainWindow>
  30. #else
  31. #include <QtGui/QMainWindow>
  32. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement