#include "mainwindow.h" #include #include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; try { w.setGeometry( QStyle::alignedRect( Qt::LeftToRight, Qt::AlignCenter, w.size(), qApp->desktop()->availableGeometry() ) ); w.show(); return a.exec(); } catch(SonoException& e) { qDebug() << e.what(); } }