Advertisement
Guest User

Untitled

a guest
Jun 30th, 2011
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #include <QtGui/QApplication>
  2. #include "qmlapplicationviewer.h"
  3. #include <QNetworkConfigurationManager>
  4. #include "connectionutility.h"
  5. #include <QGraphicsObject>
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. QApplication app(argc, argv);
  10.  
  11. QNetworkConfigurationManager manager;
  12. ConnectionUtility connectionUtility;
  13. QObject::connect(&manager,SIGNAL(updateCompleted()),&connectionUtility,SLOT(connectionListUpdated()));
  14.  
  15. QmlApplicationViewer viewer;
  16. viewer.setMainQmlFile(QLatin1String("qml/NetworkTest/main.qml"));
  17.  
  18. QObject *rootObject = viewer.rootObject();
  19. QObject::connect(rootObject, SIGNAL(checkNetworkStatus()), &connectionUtility, SLOT(checkConnectionStatus()));
  20.  
  21. viewer.showExpanded();
  22. return app.exec();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement