e54a7c5667
It's really showing how to request a resource and act on its becoming available. The use of XML to do so is incidental; the use of networking is central. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Ibcf438c7ef3b2464ddfa8b96a79fb15523e4a468 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
17 lines
390 B
C++
17 lines
390 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#include "rsslisting.h"
|
|
#include <QtWidgets>
|
|
using namespace Qt::StringLiterals;
|
|
|
|
//! [0]
|
|
int main(int argc, char **argv)
|
|
{
|
|
QApplication app(argc, argv);
|
|
RSSListing rsslisting(u"https://www.qt.io/blog/rss.xml"_s);
|
|
rsslisting.show();
|
|
return app.exec();
|
|
}
|
|
//! [0]
|