You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
539 B
27 lines
539 B
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
#include <QStyle>
|
|
#include <QDesktopWidget>
|
|
|
|
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();
|
|
}
|
|
}
|
|
|