ALT Linux Bugzilla
– Attachment 15277 Details for
Bug 48923
Оключение tls в qt6.6
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Тест для демонстрации ошибок
qt_test.cpp (text/x-c++src), 1.07 KB, created by
proskurinov@basealt.ru
on 2023-12-25 16:49:09 MSK
(
hide
)
Description:
Тест для демонстрации ошибок
Filename:
MIME Type:
Creator:
proskurinov@basealt.ru
Created:
2023-12-25 16:49:09 MSK
Size:
1.07 KB
patch
obsolete
>#include <QCoreApplication> >#include <QNetworkAccessManager> >#include <QNetworkReply> >#include <QDebug> >#include <QTimer> > >class Test : public QObject { > Q_OBJECT > >public: > Test(QObject* parent = nullptr): QObject(parent), mgr(new QNetworkAccessManager(this)) { > connect(mgr, &QNetworkAccessManager::finished, this, &Test::replyFinished); > } > >public Q_SLOTS: > void run() { > QNetworkRequest request(QUrl("http://qt-project.org")); > //QSslConfiguration sslConfiguration =QSslConfiguration::defaultConfiguration(); > mgr->get(request); > } > > void replyFinished(QNetworkReply* reply) { > if (reply->error() == QNetworkReply::NoError) { > qWarning() << "OK"; > } > else { > qWarning() << reply->errorString(); > } > } > >private: > QNetworkAccessManager* mgr; >}; > >int main(int argc, char *argv[]) >{ > > QCoreApplication app(argc, argv); > app.setAttribute(Qt::AA_Use96Dpi, true); > auto test = new Test(&app); > QTimer::singleShot(0, test, &Test::run); > > > return app.exec(); >} > >#include "qt_test.moc"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 48923
: 15277 |
17202