int main(int argc, char *argv[])
{
QApplication a(argc, argv);
...
MainWindow w;
...
#ifdef __arm__
w.showFullScreen();
#else
w.resize(800, 480); //setFixedSize
w.show();
#endif
return a.exec();
...
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
ui(new Ui::MainWindow)
{
ui->setupUi(this);
#if __arm__
this->setWindowFlags(Qt::FramelessWindowHint);
#endif
...
#ifdef Q_OS_WIN
#define NEWLINE "\r\n"
#else
#define NEWLINE "\n"
#endif