Error Qapplication
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this qapplication: no such file or directory #include
Error: C1083: Cannot Open Include File: 'qapplication': No Such File Or Directory
view; view.setSource(QUrl("/home/...plesQtQuickQML/anchors.qml")); view.show(); return app.exec(); } error: $ make g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4 -I. -o qtCppIntegration.o qtCppIntegration.cpp qtCppIntegration.cpp:1:24: fatal error: QApplication: No such file or directory compilation terminated. make: *** [qtCppIntegration.o] Error 1 qt qt-quick share|improve this question edited Sep 30 '13 at 12:11 asked Sep 30 '13 at 11:47 Aquarius TheGirl 4,77327105205 1 Your code gives me another error: QQuickView not declared. It happens because this class is available only in Qt5. IIRC, in Qt4 it is called QDeclarativeView. About your problem: a you sure that you have reexecuted qmake before make? –Kakadu Sep 30 '13 at 11:54 @Kakadu Thanks, your QDeclarativeView comment helped w.r.t the other error. –Aquarius TheGirl Sep 30 '13 at 12:07 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote accepted This did the trick: sudo apt-get install libqt4-dev share|improve this answer answered Sep 30 '13 at 12:05 Aquarius TheGirl 4,77327105205 add a comment| up vote 2 down vote For Ubuntu 14.04 if you get the same error: ABC$ make g++ -c -m64
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Qmainwindow No Such File Or Directory
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users error: 'unicodeutf8' is not a member of 'qapplication' Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping qtgui qaction no such file or directory each other. Join them; it only takes a minute: Sign up Fatal error: qapplication.h: No such file or directory up vote 1 down vote favorite When I try to run my first program in QT I get the followinging http://stackoverflow.com/questions/19093434/error-qapplication-no-such-file-or-directory-ubuntu-12-04-lts error: /untitled1/main.cpp:1:26: fatal error: qapplication.h: No such file or directory #include ^ compilation terminated. make: * [main.o] Error 1 09:38:51: The process "/usr/bin/make" exited with code 2. Error while building/deploying project untitled1 (kit: Desktop) When executing step 'Make' 09:38:52: Elapsed time: 00:01. Please help me. c++ qt share|improve this question edited Sep 6 '14 at 5:31 Quaxton Hale 94911137 asked Sep 6 '14 at 4:42 VashuDeo 86 1 Try including QT += widgets in your .pro http://stackoverflow.com/questions/25696849/fatal-error-qapplication-h-no-such-file-or-directory file. –Quaxton Hale Sep 6 '14 at 4:47 where i found .pro in my system? –VashuDeo Sep 6 '14 at 4:48 It should be in the same directory as your source files. Also replace qapplication.h with
download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript). Home Qt Development Installation and Deployment [Solved] QApplication: No such file or directory [Solved] https://forum.qt.io/topic/22882/solved-qapplication-no-such-file-or-directory QApplication: No such file or directory This topic has been deleted. Only users with topic management privileges can see it. jalomann last edited by I got Qt5 installed on Opensuse 12.2. I tried to compile some example project that compiled successfully on Qt 4.8. Now I get error message "QApplication: No such file or directory" I think the PATH to library is missing while no such I installed locally on /home/ Where should I edit? Reply Quote 0 sierdzio Moderators last edited by How do you include QApplication header? In Qt5, it resides in