Advertisement
Guest User

Untitled

a guest
May 6th, 2012
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Inclusion of header files from include/Qt is deprecated
  2. #include <QApplication>
  3. #include <QTextEdit>
  4.  
  5. int main(int argv, char **args)
  6. {
  7. QApplication app(argv, args);
  8.  
  9. QTextEdit textEdit;
  10. textEdit.show();
  11.  
  12. return app.exec();
  13. }
  14.  
  15. C:Qt4.8.0andrew>qmake -project
  16.  
  17. C:Qt4.8.0andrew>qmake
  18.  
  19. C:Qt4.8.0andrew>make
  20. mingw32-make -f Makefile.Debug
  21. mingw32-make[1]: Entering directory `C:/Qt/4.8.0/andrew'
  22. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
  23. DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -
  24. DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..includ
  25. eQtCore" -I"..includeQtGui" -I"..include" -I"." -I"..includeActiveQt" -I"d
  26. ebug" -I"..mkspecswin32-g++" -o debugtutone.o tutone.cpp
  27. In file included from tutone.cpp:1:0:
  28. C:Qt4.8.0includeQtQapplication.h:3:10: warning: #warning "Inclusion of head
  29. er files from include/Qt is deprecated." [-Wcpp]
  30. In file included from tutone.cpp:2:0:
  31. C:Qt4.8.0includeQtQpushbutton.h:3:10: warning: #warning "Inclusion of heade
  32. r files from include/Qt is deprecated." [-Wcpp]
  33. tutone.cpp: In function 'int qMain(int, char**)':
  34. tutone.cpp:11:7: error: 'class QApplication' has no member named 'setMainWidget'
  35.  
  36. mingw32-make[1]: *** [debug/tutone.o] Error 1
  37. mingw32-make[1]: Leaving directory `C:/Qt/4.8.0/andrew'
  38. mingw32-make: *** [debug] Error 2
  39.  
  40. ######################################################################
  41. # Automatically generated by qmake (2.01a) Thu Jan 19 12:41:21 2012
  42. ######################################################################
  43.  
  44. TEMPLATE = app
  45. TARGET =
  46. DEPENDPATH += .
  47. INCLUDEPATH += .
  48.  
  49. # Input
  50. HEADERS += tutone.h
  51. C:/Qt/4.8.0/include/Qt/Qapplication.h
  52. ../include/QtGui/qapplication.h
  53. ../src/gui/kernel/qapplication.h
  54. C:/Qt/4.8.0/include/Qt/Qpushbutton.h
  55. ../include/QtGui/qpushbutton.h
  56. ../src/gui/widgets/qpushbutton.h
  57. SOURCES += tutone.cpp
  58. tutthree.cpp
  59. ../src/gui/kernel/qapplication.cpp
  60. ../src/gui/widgets/qpushbutton.cpp
  61.  
  62. QT += core gui # <-- this line
  63. TEMPLATE = app
  64. TARGET = ProjectNameHere
  65. DEPENDPATH += .
  66. INCLUDEPATH += .
  67.  
  68. # Input
  69. HEADERS += tutone.h
  70. SOURCES += tutone.cpp
  71. tutthree.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement