Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QtGui/QApplication>
- #include "qmlapplicationviewer.h"
- #include <QNetworkConfigurationManager>
- #include "connectionutility.h"
- #include <QGraphicsObject>
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- QNetworkConfigurationManager manager;
- ConnectionUtility connectionUtility;
- QObject::connect(&manager,SIGNAL(updateCompleted()),&connectionUtility,SLOT(connectionListUpdated()));
- QmlApplicationViewer viewer;
- viewer.setMainQmlFile(QLatin1String("qml/NetworkTest/main.qml"));
- QObject *rootObject = viewer.rootObject();
- QObject::connect(rootObject, SIGNAL(checkNetworkStatus()), &connectionUtility, SLOT(checkConnectionStatus()));
- viewer.showExpanded();
- return app.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement