Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #7

Open
TheChapu opened this issue Jul 31, 2017 · 3 comments
Open

Error #7

TheChapu opened this issue Jul 31, 2017 · 3 comments

Comments

@TheChapu
Copy link

selection_050

@AndyTsangChun
Copy link

AndyTsangChun commented Aug 10, 2017

I got exactly the same error on Ubuntu 16.04, have u figure out how to solve it yet??

I tried the
#include <QApplication>
and
QT += widgets
seems not working, btw the widget one was actually already there

======================================================
Solution found here

sudo apt-get remove --purge qt4-default qt4-designer qt4-dev-tools qt4-qmake qt4-doc qt4-linguist-tools qtchooser
sudo apt-get install qt5-qmake qt5-default qttools5-dev-tools libqt5script5 libqt5scripttools5 qtscript5-dev

@hanshan1
Copy link

hanshan1 commented Apr 6, 2018

the same error

@dmitriy-nz
Copy link

Solution for me:

qmake --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

  1. Delete #include <QtGui> from about.cpp
  2. Add find_package(Qt5Gui) to file CMakeLists.txt after line find_package(Qt5Widgets)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants