Home · All Classes ·

main.cpp Example File

examples/qespta/main.cpp
    /**
     * @file main.cpp
     * @brief Main file.
     * @author Micha? Policht
     */

    #include <QApplication>
    #include "MainWindow.h"
    #include "MessageWindow.h"

    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
    #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
        //redirect debug messages to the MessageWindow dialog
        qInstallMsgHandler(MessageWindow::AppendMsgWrapper);
    #else
        qInstallMessageHandler(MessageWindow::AppendMsgWrapper);
    #endif

        MainWindow mainWindow;
        mainWindow.show();

        return app.exec();
    }


Copyright © 2000-2012 QextSerialPort Project
QextSerialPort Manual