#include <QApplication>
#include <QSslSocket>
#include <QtDebug>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qDebug()<<QSslSocket::supportsSsl();
return app.exec();
}
---------------------------------------------
TEMPLATE = app
TARGET =
QT += network
CONFIG += console
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
---------------------------------------------
报错如下:
main.cpp: In function `int main(int, char**)':
main.cpp:8: error: `QSslSocket' has not been declared
main.cpp:8: error: `supportsSsl' was not declared in this scope
main.cpp:8: warning: unused variable 'supportsSsl'
main.cpp:10:2: warning: no newline at end of file
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make: *** [debug] Error 2
============================
我的Qt安装的应该还算正常吧,编写RSS阅读器也写了这么久了。
高手给指点一下