Qapplication Error
Contents |
here for a quick overview of the site Help Center qtgui/qapplication no such file or directory Detailed answers to any questions you might have Meta Discuss qmainwindow no such file or directory the workings and policies of this site About Us Learn more about Stack Overflow
Qtgui/qapplication Qt5
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Qapplication No Such File Or Directory Cmake
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error: QApplication: No such file or directory - Ubuntu 12.04 LTS up vote 4 down vote favorite Ubuntu 12.04 error: 'unicodeutf8' is not a member of 'qapplication' LTS Qt version: $ qmake -v QMake version 2.01a Using Qt version 4.8.1 in /usr/lib/x86_64-linux-gnu .pro file: TEMPLATE += app QT += core gui declarative SOURCES += qtCppIntegration.cpp .cpp file: #include
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
Qtgui/qaction No Such File Or Directory
Learn more about Stack Overflow the company Business Learn more about hiring developers or qwidget no such file or directory posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow qt creator no such file or directory header Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error: qapplication.h: No such file or directory http://stackoverflow.com/questions/19093434/error-qapplication-no-such-file-or-directory-ubuntu-12-04-lts up vote 1 down vote favorite When I try to run my first program in QT I get the followinging 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 http://stackoverflow.com/questions/25696849/fatal-error-qapplication-h-no-such-file-or-directory this question edited Sep 6 '14 at 5:31 Quaxton Hale 94911238 asked Sep 6 '14 at 4:42 VashuDeo 86 1 Try including QT += widgets in your .pro 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
the Qt code base requires some amount of changes to project configuration, such as https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5 use of "headers", and configuration of project build settings (such as changes to the *.pro files). Qt Creator (master) is compiled using Qt 4 and Qt 5; you can refer to its sources to get an overview of what is required to port an application and keep the sources backwards compatible to Qt 4. Contents 1 QtWidgets as a Separate Module 1.1 example compile time errors 1.2 no such Solution 2 QtWebKitWidgets is also a separate module: 2.1 example compile time errors 2.2 Solution 3 QPrinter Doesn't Work 4 toAscii() and fromAscii() Methods are deprecated 5 QCoreApplication::UnicodeUTF8 is deprecated 6 QWorkspace is deprecated 7 QDrag Problems 8 qFindChildren is deprecated 9 qVariantValue is deprecated 10 qVariantCanConvert is deprecated 11 Qt::escape is deprecated 12 QDesktopServices::storageLocation deprecated 13 CONFIG+=qtestlib is deprecated 14 QWeakPointer quirks 15 QtConcurrent Library is Missing? no such file 16 Fixing #include<> Headers 17 Plugin loading 18 Deploying to systems without C++11 19 QTimer is no longer accurate to the millisecond by default 20 QUrl addQueryItem moved to QUrlQuery 21 QAbstractItemModel changes 22 Recommended Reading QtWidgets as a Separate Module example compile time errors error: QMainWindow: No such file or directory error: QToolButton: No such file or directory error: QWidget: No such file or directory Solution Add this in your *.pro file: QT += widgets Change all instances of #include