QtWebKit dependency missing from qmake generated Makefile
问题 I just started working with Qt (in C++), so I followed a "hello, world" example I found online. I created the program hello.cpp in the directory hello: #include <QtGui> int main(int argc, char *argv[]) { QApplication app (argc, argv); QLabel label ("Hello, world!"); label.show(); return app.exec(); } I ran: qmake -project qmake hello.pro make and everything compiled correctly and I was able to run ./hello. Then, being an adventurous person, I tried modifying the file: #include <QtGui>