Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 #include "mainwindow.h"
2 #include <QtGui/QApplication>
4 int main(int argc, char *argv[])
5 {
6   QApplication app(argc, argv);
8   MainWindow mainWindow;
9   mainWindow.setOrientation(MainWindow::ScreenOrientationLockLandscape);
10   mainWindow.showExpanded();
12   // A connection to perform any final cleanup work:
13   app.connect(
14     &app,
15     SIGNAL(aboutToQuit()),
16     &mainWindow,
17     SLOT(finalCleanup()),
18     Qt::DirectConnection);
20   return app.exec();
21 }

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment